[llvm] [InstCombine] Add fold for fabs(-x) -> fabs(x) (PR #94183)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 3 02:05:43 PDT 2024
================
@@ -2517,6 +2517,13 @@ Instruction *InstCombinerImpl::visitCallInst(CallInst &CI) {
}
case Intrinsic::fabs: {
Value *Cond, *TVal, *FVal;
+ Value* Arg = II->getArgOperand(0);
----------------
dtcxzyw wrote:
Can you replace all following uses of `II->getArgOperand(0)` with `Arg`?
https://github.com/llvm/llvm-project/pull/94183
More information about the llvm-commits
mailing list