Skip to content

Commit 8933f5a

Browse files
authored
Update GVN.cpp
1 parent 3918040 commit 8933f5a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Transforms/Scalar/GVN.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2693,6 +2693,9 @@ bool GVNPass::runImpl(Function &F, AssumptionCache &RunAC, DominatorTree &RunDT,
26932693
if (F.hasSEHOrCXXSEH())
26942694
return false;
26952695

2696+
if (F.hasFnAttribute(llvm::Attribute::OptimizeNone))
2697+
return false;
2698+
26962699
AC = &RunAC;
26972700
DT = &RunDT;
26982701
VN.setDomTree(DT);

0 commit comments

Comments
 (0)