[llvm] [GISel] Add more FP opcodes to CSE (PR #123624)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 21 01:48:45 PST 2025
================
@@ -65,6 +65,12 @@ bool CSEConfigFull::shouldCSEOpc(unsigned Opc) {
case TargetOpcode::G_BUILD_VECTOR:
case TargetOpcode::G_BUILD_VECTOR_TRUNC:
case TargetOpcode::G_SEXT_INREG:
+ case TargetOpcode::G_FADD:
+ case TargetOpcode::G_FSUB:
+ case TargetOpcode::G_FMUL:
+ case TargetOpcode::G_FDIV:
+ case TargetOpcode::G_FNEG:
+ case TargetOpcode::G_FABS:
----------------
lialan wrote:
question: should we fold `G_FMINNUM/G_FMANNUM`? the result of comparing 0 and -0 could be different.
https://github.com/llvm/llvm-project/pull/123624
More information about the llvm-commits
mailing list