[llvm] [VPlan] Make VPIRFlags verification type aware, fix remaining holes. (PR #213081)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 20 21:54:28 PDT 2026
================
@@ -2557,8 +2557,11 @@ VPIRFlags VPIRFlags::getDefaultFlags(unsigned Opcode, Type *ResultTy) {
case Instruction::FPTrunc:
return FastMathFlags();
case Instruction::Select:
- // Selects only have fast-math flags if they produce a floating-point value.
- if (ResultTy && FPMathOperator::isSupportedFloatingPointType(ResultTy))
+ case Instruction::PHI:
+ case Instruction::Call:
+ // Selects, phis and calls only have fast-math flags if they produce a
+ // floating-point value.
----------------
lukel97 wrote:
`modf` returns a struct of floats, the langref seems to use the term "supported floating-point type", might be good to use it here
```suggestion
// supported floating-point type.
```
https://github.com/llvm/llvm-project/pull/213081
More information about the llvm-commits
mailing list