We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9664ddf commit 11d464eCopy full SHA for 11d464e
llvm/lib/Transforms/Scalar/InstSimplifyPass.cpp
@@ -44,7 +44,7 @@ static bool runImpl(Function &F, const SimplifyQuery &SQ) {
44
if (!ToSimplify->empty() && !ToSimplify->count(&I))
45
continue;
46
47
- if (I.isVolatile())
+ if (I.isVolatile() && !I.isPHINodeOrSelectInstOrSwitchInst())
48
49
50
// Don't waste time simplifying dead/unused instructions.
0 commit comments