Skip to content

Commit 11d464e

Browse files
committed
Update InstSimplifyPass.cpp
1 parent 9664ddf commit 11d464e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Scalar/InstSimplifyPass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ static bool runImpl(Function &F, const SimplifyQuery &SQ) {
4444
if (!ToSimplify->empty() && !ToSimplify->count(&I))
4545
continue;
4646

47-
if (I.isVolatile())
47+
if (I.isVolatile() && !I.isPHINodeOrSelectInstOrSwitchInst())
4848
continue;
4949

5050
// Don't waste time simplifying dead/unused instructions.

0 commit comments

Comments
 (0)