[PATCH] D118000: [AArch64][NFC] Abstracts shared behavior in MIPeepholeOpt for ADD, SUB, and AND.

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 25 01:37:50 PST 2022


dmgreen added inline comments.


================
Comment at: llvm/lib/Target/AArch64/AArch64MIPeepholeOpt.cpp:354-355
+  T Imm = static_cast<T>(MovMI->getOperand(1).getImm()), Imm0, Imm1;
+  if (SubregToRegMI)
+    Imm &= 0xFFFFFFFF;
+  unsigned Opcode;
----------------
Do we have test case for this case with an ADD?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D118000/new/

https://reviews.llvm.org/D118000



More information about the llvm-commits mailing list