[llvm] [X86][CodeGen] Support EVEX compression: NDD to nonNDD (PR #77731)

Shengchen Kan via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 11 00:51:56 PST 2024


================
@@ -220,6 +220,29 @@ static bool performCustomAdjustments(MachineInstr &MI, unsigned NewOpc) {
   return true;
 }
 
+static bool isRedundantNewDataDest(MachineInstr &MI, const X86Subtarget &ST) {
+  // addq %rax, %rbx, %rbx / addq %rbx, %rax, %rbx -> addq %rax, %rbx
----------------
KanRobert wrote:

Good idea!

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


More information about the llvm-commits mailing list