[HotColdSplit] Avoid branch on undef UB in test (NFC)
authorNikita Popov <npopov@redhat.com>
Tue, 3 Jan 2023 13:07:07 +0000 (14:07 +0100)
committerNikita Popov <npopov@redhat.com>
Tue, 3 Jan 2023 13:07:07 +0000 (14:07 +0100)
llvm/test/Transforms/HotColdSplit/coldentrycount.ll

index 1b39a75..fbd0e4d 100644 (file)
@@ -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