================
@@ -2200,6 +2224,38 @@ Value
*InstCombinerImpl::SimplifyDemandedUseFPClass(Instruction *I,
switch (I->getOpcode()) {
case Instruction::FNeg: {
+ // Special case fneg(fabs(x))
+
+ Value *FNegSrc = I->getOperand(0);
+ Value *FNegFAbsSrc;
+ if (match(FNegSrc, m_FAbs(m_Value(FNegFAbsSrc)))) {
----------------
dtcxzyw wrote:
Please add some tests with multi-use fabs. I guess this shares the same issue
with #176122.
https://github.com/llvm/llvm-project/pull/176360
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits