[llvm] 18f627b - [CallSiteSplitting] Avoid branch on undef UB in test (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 3 03:51:21 PST 2023
Author: Nikita Popov
Date: 2023-01-03T12:51:01+01:00
New Revision: 18f627bcf533a9ee95e441c8198d5694fff48100
URL: https://github.com/llvm/llvm-project/commit/18f627bcf533a9ee95e441c8198d5694fff48100
DIFF: https://github.com/llvm/llvm-project/commit/18f627bcf533a9ee95e441c8198d5694fff48100.diff
LOG: [CallSiteSplitting] Avoid branch on undef UB in test (NFC)
Added:
Modified:
llvm/test/Transforms/CallSiteSplitting/split-loop.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/CallSiteSplitting/split-loop.ll b/llvm/test/Transforms/CallSiteSplitting/split-loop.ll
index 5e8087dc399f8..649beb355fb31 100644
--- a/llvm/test/Transforms/CallSiteSplitting/split-loop.ll
+++ b/llvm/test/Transforms/CallSiteSplitting/split-loop.ll
@@ -55,7 +55,7 @@ for.cond12:
br label %for.cond12
}
-define i16 @test3() {
+define i16 @test3(i1 %c) {
; CHECK-LABEL: @test3(
; CHECK-NEXT: entry:
; CHECK-NEXT: [[S:%.*]] = select i1 undef, i16 1, i16 0
@@ -67,7 +67,7 @@ define i16 @test3() {
; CHECK-NEXT: call void @callee(i16 [[S]])
; CHECK-NEXT: [[ADD:%.*]] = add i16 [[S]], 10
; CHECK-NEXT: [[ADD2:%.*]] = add i16 [[ADD]], 10
-; CHECK-NEXT: br i1 undef, label [[FOR_COND12]], label [[EXIT:%.*]]
+; CHECK-NEXT: br i1 [[C:%.*]], label [[FOR_COND12]], label [[EXIT:%.*]]
; CHECK: exit:
; CHECK-NEXT: ret i16 [[ADD2]]
;
@@ -83,7 +83,7 @@ for.cond12:
call void @callee(i16 %s)
%add = add i16 %s, 10
%add2 = add i16 %add, 10
- br i1 undef, label %for.cond12, label %exit
+ br i1 %c, label %for.cond12, label %exit
exit:
ret i16 %add2
More information about the llvm-commits
mailing list