Skip to content

Commit 0b09326

Browse files
committed
Remove isSpeculatable check
1 parent e9ab434 commit 0b09326

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1459,8 +1459,7 @@ InstCombinerImpl::foldShuffledIntrinsicOperands(IntrinsicInst *II) {
14591459
/// If all arguments of the intrinsic are reverses, try to pull the reverse
14601460
/// after the intrinsic.
14611461
Value *InstCombinerImpl::foldReversedIntrinsicOperands(IntrinsicInst *II) {
1462-
if (!isTriviallyVectorizable(II->getIntrinsicID()) ||
1463-
!II->getCalledFunction()->isSpeculatable())
1462+
if (!isTriviallyVectorizable(II->getIntrinsicID()))
14641463
return nullptr;
14651464

14661465
// At least 1 operand must be a reverse with 1 use because we are creating 2

0 commit comments

Comments
 (0)