[PATCH] D135533: [DSE][NFC] Add nounwind attribute to match test intent
luxufan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 8 22:57:14 PDT 2022
StephenFan created this revision.
StephenFan added a reviewer: nikic.
Herald added a project: All.
StephenFan requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
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.466350.patch
Type: text/x-patch
Size: 1643 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221009/e133fc1b/attachment.bin>
More information about the llvm-commits
mailing list