[llvm] InstCombine: Pass SimplifyQuery through SimplifyDemandedFPClass (PR #184096)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 2 03:25:35 PST 2026


================
@@ -2384,7 +2384,7 @@ Value *InstCombinerImpl::SimplifyDemandedUseFPClass(Instruction *I,
     // fadd x, x can be handled more aggressively.
     if (I->getOperand(0) == I->getOperand(1) &&
         I->getOpcode() == Instruction::FAdd &&
-        isGuaranteedNotToBeUndef(I->getOperand(0), SQ.AC, CxtI, SQ.DT,
+        isGuaranteedNotToBeUndef(I->getOperand(0), SQ.AC, I, SQ.DT,
----------------
nikic wrote:

```suggestion
        isGuaranteedNotToBeUndef(I->getOperand(0), SQ.AC, SQ.CxtI, SQ.DT,
```
Probably?

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


More information about the llvm-commits mailing list