[llvm] [GISel] Add more FP opcodes to CSE (PR #123624)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 21 02:37:56 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:
----------------
arsenm wrote:

Yes. It also couldn't be. We're also fixing the definition to always have the correct ordered zero handling, so it would just be subject to the ordinary nsz flag handling 

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


More information about the llvm-commits mailing list