[llvm] [AArch64] Combine PTEST_FIRST(PTRUE, CONCAT(A, B)) -> PTEST_FIRST(PTRUE, A) (PR #161384)

Paul Walker via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 1 08:30:43 PDT 2025


================
@@ -1503,6 +1503,10 @@ AArch64InstrInfo::canRemovePTestInstr(MachineInstr *PTest, MachineInstr *Mask,
             getElementSizeForOpcode(PredOpcode))
       return PredOpcode;
 
+    if (PTest->getOpcode() == AArch64::PTEST_PP_FIRST &&
----------------
paulwalker-arm wrote:

Perhaps add a comment to match the other cases?

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


More information about the llvm-commits mailing list