[llvm] [X86] combineStore - fold scalar float store(fabs/fneg(load())) -> store(and/xor(load(),c)) (PR #118680)
Phoebe Wang via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 4 19:41:40 PST 2024
================
@@ -52661,6 +52661,29 @@ static SDValue combineStore(SDNode *N, SelectionDAG &DAG,
St->getMemOperand()->getFlags());
}
+ // Convert scalar fabs/fneg load-store to integer equivalents.
+ if ((VT == MVT::f32 || VT == MVT::f64) &&
----------------
phoebewang wrote:
Should we consider more FP types like half, bfloat, fp128?
https://github.com/llvm/llvm-project/pull/118680
More information about the llvm-commits
mailing list