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

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 22 22:42:20 PST 2025


================
@@ -75,6 +75,138 @@ TEST_F(AArch64GISelMITest, TestCSE) {
   auto MIBUnmerge2 = CSEB.buildUnmerge({s32, s32}, Copies[0]);
   EXPECT_TRUE(&*MIBUnmerge == &*MIBUnmerge2);
 
+  // Check G_FADD
----------------
arsenm wrote:

In a cleanup you could use buildInstr and loop over the opcodes, these are all going to behave the same way 

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


More information about the llvm-commits mailing list