[llvm] [SimplifyCFG] Remove conservative fcmp guard from speculativelyExecuteBB (PR #211611)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 27 13:53:27 PDT 2026
================
@@ -3454,7 +3450,10 @@ bool SimplifyCFGOpt::speculativelyExecuteBB(CondBrInst *BI,
Value *TrueV = ThenV, *FalseV = OrigV;
if (Invert)
std::swap(TrueV, FalseV);
- Value *V = Builder.CreateSelect(BrCond, TrueV, FalseV, "spec.select", BI);
+ // Propagate fast-math flags from the phi node to the replacement select.
----------------
fhahn wrote:
Ah right ,this triggers now in cases other, later folds would have triggered.
https://github.com/llvm/llvm-project/pull/211611
More information about the llvm-commits
mailing list