[llvm] [AArch64] Run cleanup one final time after peephole (PR #199711)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 24 02:25:37 PDT 2026


nikic wrote:

This has some compile-time impact: https://llvm-compile-time-tracker.com/compare.php?from=82c5bce5233f964da4f8086b2341067314d841d7&to=448c3d54df7bcd5e5be2b5d051832ad00b4cc89c&stat=instructions:u

This is fine if AArch64 backend developers feel it's worth the cost, but it doesn't seem like the tradeoff here has been considered.

The pass order is now:
```
; CHECK-NEXT:       Remove dead machine instructions
; CHECK-NEXT:       AArch64 MI Peephole Optimization pass
; CHECK-NEXT:       Remove dead machine instructions
```
Is it *really* necessary to remove dead machine instructions both before and after the peephole optimization pass?

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


More information about the llvm-commits mailing list