[llvm] [PowerPC] Remove DAG matching in ADDIStocHA (PR #93905)

Chen Zheng via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 2 18:55:20 PDT 2024


================
@@ -3345,7 +3345,7 @@ def LWZtocL : PPCEmitTimePseudo<(outs gprc:$rD), (ins tocentry32:$disp, gprc_nor
 def ADDIStocHA : PPCEmitTimePseudo<(outs gprc:$rD), (ins gprc_nor0:$reg, tocentry32:$disp),
                        "#ADDIStocHA",
                        [(set i32:$rD,
-                         (PPCtoc_entry i32:$reg, tglobaladdr:$disp))]>;
+                         (PPCtoc_entry tglobaladdr:$disp, i32:$reg))]>;
----------------
chenzheng1030 wrote:

Do we confirm the pattern is not used? @bzEq I saw there are LIT changes...

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


More information about the llvm-commits mailing list