[PATCH] D135533: [DSE][NFC] Add nounwind attribute to match test intent
luxufan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 9 09:12:48 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG4de58eb432b6: [DSE][NFC] Add nounwind attribute to match test intent (authored by StephenFan).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D135533/new/
https://reviews.llvm.org/D135533
Files:
llvm/test/Transforms/DeadStoreElimination/multiblock-loops.ll
Index: llvm/test/Transforms/DeadStoreElimination/multiblock-loops.ll
===================================================================
--- llvm/test/Transforms/DeadStoreElimination/multiblock-loops.ll
+++ llvm/test/Transforms/DeadStoreElimination/multiblock-loops.ll
@@ -392,19 +392,17 @@
ret i32 %l
}
-declare i1 @cond() readnone
+declare i1 @cond() readnone nounwind
-; TODO: We can eliminate the store in for.header, but we currently hit a MemoryPhi.
define void @loop_multiple_def_uses(ptr noalias %P) {
; CHECK-LABEL: @loop_multiple_def_uses(
; CHECK-NEXT: entry:
; CHECK-NEXT: br label [[FOR_HEADER:%.*]]
; CHECK: for.header:
-; CHECK-NEXT: store i32 1, ptr [[P:%.*]], align 4
; CHECK-NEXT: [[C1:%.*]] = call i1 @cond()
; CHECK-NEXT: br i1 [[C1]], label [[FOR_BODY:%.*]], label [[END:%.*]]
; CHECK: for.body:
-; CHECK-NEXT: store i32 2, ptr [[P]], align 4
+; CHECK-NEXT: store i32 2, ptr [[P:%.*]], align 4
; CHECK-NEXT: [[LV:%.*]] = load i32, ptr [[P]], align 4
; CHECK-NEXT: br label [[FOR_HEADER]]
; CHECK: end:
@@ -436,11 +434,10 @@
; CHECK-NEXT: entry:
; CHECK-NEXT: br label [[FOR_HEADER:%.*]]
; CHECK: for.header:
-; CHECK-NEXT: store i32 1239491, ptr [[P:%.*]], align 4
+; CHECK-NEXT: store i32 1239297, ptr [[P:%.*]], align 4
; CHECK-NEXT: [[C1:%.*]] = call i1 @cond()
; CHECK-NEXT: br i1 [[C1]], label [[FOR_BODY:%.*]], label [[END:%.*]]
; CHECK: for.body:
-; CHECK-NEXT: store i8 1, ptr [[P]], align 4
; CHECK-NEXT: [[LV:%.*]] = load i32, ptr [[P]], align 4
; CHECK-NEXT: br label [[FOR_HEADER]]
; CHECK: end:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135533.466379.patch
Type: text/x-patch
Size: 1643 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221009/1bcda28b/attachment.bin>
More information about the llvm-commits
mailing list