[llvm] [AArch64] Allow peephole to optimize AND + signed compare with 0 (PR #153608)

Benjamin Maxwell via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 22 08:31:06 PDT 2025


================
@@ -87,6 +87,26 @@ unsigned getNonFlagSettingVariant(unsigned Opc) {
     return AArch64::ADDXri;
   case AArch64::ADDSWri:
     return AArch64::ADDWri;
+  case AArch64::ANDSWri:
----------------
MacDue wrote:

Is this change necessary? None of the tests here are for GISel. 

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


More information about the llvm-commits mailing list