File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1981,13 +1981,13 @@ void VPWidenIntOrFpInductionRecipe::execute(VPTransformState &State) {
1981
1981
1982
1982
// Fast-math-flags propagate from the original induction instruction.
1983
1983
IRBuilder<>::FastMathFlagGuard FMFG (Builder);
1984
- if (ID. getInductionBinOp () && isa <FPMathOperator>(ID.getInductionBinOp ()))
1984
+ if (isa_and_present <FPMathOperator>(ID.getInductionBinOp ()))
1985
1985
Builder.setFastMathFlags (ID.getInductionBinOp ()->getFastMathFlags ());
1986
1986
1987
1987
// Now do the actual transformations, and start with fetching the step value.
1988
1988
Value *Step = State.get (getStepValue (), VPLane (0 ));
1989
1989
1990
- assert ((isa<PHINode>(EntryVal) || isa< TruncInst>(EntryVal)) &&
1990
+ assert ((isa<PHINode, TruncInst>(EntryVal)) &&
1991
1991
" Expected either an induction phi-node or a truncate of it!" );
1992
1992
1993
1993
// Construct the initial value of the vector IV in the vector loop preheader
You can’t perform that action at this time.
0 commit comments