From 995ee57ea7fc035b865a61cb2310c143a21c886b Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Tue, 3 Jan 2023 14:07:07 +0100 Subject: [PATCH] [HotColdSplit] Avoid branch on undef UB in test (NFC) --- llvm/test/Transforms/HotColdSplit/coldentrycount.ll | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/test/Transforms/HotColdSplit/coldentrycount.ll b/llvm/test/Transforms/HotColdSplit/coldentrycount.ll index 1b39a75..fbd0e4d 100644 --- a/llvm/test/Transforms/HotColdSplit/coldentrycount.ll +++ b/llvm/test/Transforms/HotColdSplit/coldentrycount.ll @@ -10,9 +10,9 @@ target triple = "x86_64-apple-macosx10.14.0" ; CHECK: define {{.*}} @fun{{.*}} ![[HOTPROF:[0-9]+]] {{.*}}section_prefix ![[LIKELY:[0-9]+]] ; CHECK: call void @fun.cold.1 -define void @fun() !prof !14 { +define void @fun(i1 %c) !prof !14 { entry: - br i1 undef, label %if.then, label %if.else + br i1 %c, label %if.then, label %if.else if.then: ret void -- 2.7.4