[clang] [llvm] [AVR] Fix Avr indvar detection and strength reduction (missed optimization) (PR #152028)
Ben Shi via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 6 02:08:15 PDT 2025
================
@@ -94,7 +94,9 @@ while.end: ; preds = %while.body, %entry
define void @store8predec(ptr %x, i8 %y) {
; CHECK-LABEL: store8predec:
-; CHECK: st -{{[XYZ]}}, {{.*}}
+; TODO: st -{{[XYZ]}}, {{.*}}
+; CHECK: sbiw {{..*}}, 1
----------------
benshi001 wrote:
it would be better to show the register of `sbiw` is r26/r28/r30, something like `sbiw [r26|r28|r30], 1`.
https://github.com/llvm/llvm-project/pull/152028
More information about the llvm-commits
mailing list