[llvm] [VPlan] Add opcode to create step for wide inductions. (PR #119284)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 13 01:33:40 PST 2024


================
@@ -661,7 +661,8 @@ bool VPInstruction::isFPMathOp() const {
   return Opcode == Instruction::FAdd || Opcode == Instruction::FMul ||
          Opcode == Instruction::FNeg || Opcode == Instruction::FSub ||
          Opcode == Instruction::FDiv || Opcode == Instruction::FRem ||
-         Opcode == Instruction::FCmp || Opcode == Instruction::Select;
+         Opcode == Instruction::FCmp || Opcode == Instruction::Select ||
+         Opcode == VPInstruction::WideIVStep;
----------------
lukel97 wrote:

Will this return true even when the type operand is an integer?

https://github.com/llvm/llvm-project/pull/119284


More information about the llvm-commits mailing list