File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
llvm/lib/Transforms/InstCombine Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1401,12 +1401,10 @@ static Instruction *factorizeMinMaxTree(IntrinsicInst *II) {
1401
1401
// / try to shuffle after the intrinsic.
1402
1402
Instruction *
1403
1403
InstCombinerImpl::foldShuffledIntrinsicOperands (IntrinsicInst *II) {
1404
- if (!isTriviallyVectorizable (II->getIntrinsicID ()))
1404
+ if (!isTriviallyVectorizable (II->getIntrinsicID ()) ||
1405
+ !II->getCalledFunction ()->isSpeculatable ())
1405
1406
return nullptr ;
1406
1407
1407
- assert (isSafeToSpeculativelyExecute (II) &&
1408
- " Trivially vectorizable but not safe to speculatively execute?" );
1409
-
1410
1408
// fabs is canonicalized to fabs (shuffle ...) in foldShuffleOfUnaryOps, so
1411
1409
// avoid undoing it.
1412
1410
if (match (II, m_FAbs (m_Value ())))
You can’t perform that action at this time.
0 commit comments