[PATCH] D135847: [PowerPC] don't check CTR clobber in hardware loop insertion pass
Kai Luo via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 7 20:02:21 PST 2022
lkail added inline comments.
================
Comment at: llvm/test/CodeGen/PowerPC/pr36292.ll:22
+; CHECK-NEXT: .p2align 4
+; CHECK-NEXT: .LBB0_1: # %forcond
+; CHECK-NEXT: #
----------------
Do you have any idea of this regression? Looks we have additional `addi` and `b` in the loop after the change.
================
Comment at: llvm/test/CodeGen/PowerPC/pr48519.ll:31
; CHECK-NEXT: cmpldi r30, 0
-; CHECK-NEXT: bne+ cr0, .LBB0_1
+; CHECK-NEXT: bc 12, gt, .LBB0_1
; CHECK-NEXT: # %bb.2: # %bb11
----------------
nit: Maybe we should change `undef` to concrete value to avoid flag flip.
================
Comment at: llvm/test/CodeGen/PowerPC/pr55463.ll:71
; CHECK-NEXT: evmergelo 3, 3, 4
-; CHECK-NEXT: addi 28, 28, 1
+; CHECK-NEXT: addi 28, 28, -1
; CHECK-NEXT: cmplwi 28, 0
----------------
nit: `undef` leads to flag flip.
================
Comment at: llvm/test/CodeGen/PowerPC/spe.ll:1798
; CHECK-NEXT: mr 5, 3
-; CHECK-NEXT: bne 0, .LBB56_2
+; CHECK-NEXT: cmplwi 30, 0
+; CHECK-NEXT: addi 29, 29, 1
----------------
This regression looks the same pattern as `llvm/test/CodeGen/PowerPC/pr36292.ll`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D135847/new/
https://reviews.llvm.org/D135847
More information about the llvm-commits
mailing list