[llvm] r347166 - [SystemZ] make test immune to improvements in undef simplification

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 18 08:50:45 PST 2018


Author: spatel
Date: Sun Nov 18 08:50:44 2018
New Revision: 347166

URL: http://llvm.org/viewvc/llvm-project?rev=347166&view=rev
Log:
[SystemZ] make test immune to improvements in undef simplification

Modified:
    llvm/trunk/test/CodeGen/SystemZ/subregliveness-05.ll

Modified: llvm/trunk/test/CodeGen/SystemZ/subregliveness-05.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/SystemZ/subregliveness-05.ll?rev=347166&r1=347165&r2=347166&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/SystemZ/subregliveness-05.ll (original)
+++ llvm/trunk/test/CodeGen/SystemZ/subregliveness-05.ll Sun Nov 18 08:50:44 2018
@@ -9,7 +9,7 @@ target triple = "s390x-ibm-linux"
 @g_65 = external global i32, align 4
 
 ; Function Attrs: nounwind
-define void @main() #0 {
+define void @main(i1 %x) #0 {
 bb:
   br label %bb1
 
@@ -25,7 +25,7 @@ bb1:
   br i1 undef, label %bb12, label %bb9
 
 bb9:                                              ; preds = %bb1
-  %tmp10 = select i1 undef, i64 0, i64 %tmp2
+  %tmp10 = select i1 %x, i64 0, i64 %tmp2
   %tmp11 = add nsw i64 %tmp10, %tmp8
   br label %bb12
 




More information about the llvm-commits mailing list