[llvm] [VPlan] Set correct VPIRFlags for FP selects when sinking stores. (PR #212973)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 30 02:36:24 PDT 2026
================
@@ -2526,6 +2526,13 @@ VPIRFlags VPIRFlags::getDefaultFlags(unsigned Opcode) {
case Instruction::FPExt:
case Instruction::FPTrunc:
return FastMathFlags();
+ case Instruction::Select:
+ case Instruction::PHI:
+ case Instruction::Call:
+ // Selects only have fast-math flags if they produce a floating-point value.
+ if (ResultTy && FPMathOperator::isSupportedFloatingPointType(ResultTy))
----------------
lukel97 wrote:
Is the plan to eventually assert if Select/PHI/Call don't pass `ResultTy`?
https://github.com/llvm/llvm-project/pull/212973
More information about the llvm-commits
mailing list