[llvm] ab17873 - [Test] Simplify test for PR55072

Max Kazantsev via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 25 03:20:56 PDT 2022


Author: Max Kazantsev
Date: 2022-04-25T17:20:34+07:00
New Revision: ab17873ee696dfbd6e7b10c5f78192f3990db970

URL: https://github.com/llvm/llvm-project/commit/ab17873ee696dfbd6e7b10c5f78192f3990db970
DIFF: https://github.com/llvm/llvm-project/commit/ab17873ee696dfbd6e7b10c5f78192f3990db970.diff

LOG: [Test] Simplify test for PR55072

Added: 
    

Modified: 
    llvm/test/Transforms/LoopInstSimplify/pr55072.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/LoopInstSimplify/pr55072.ll b/llvm/test/Transforms/LoopInstSimplify/pr55072.ll
index 825a677b32b4d..dfdbfefde2f39 100644
--- a/llvm/test/Transforms/LoopInstSimplify/pr55072.ll
+++ b/llvm/test/Transforms/LoopInstSimplify/pr55072.ll
@@ -4,40 +4,15 @@
 ; XFAIL: *
 ; REQUIRES: asserts
 
-target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128-ni:1-p2:32:8:8:32-ni:2"
-target triple = "x86_64-unknown-linux-gnu"
-
 define i32 @test_01() {
 ; CHECK-LABEL: test_01
 bb:
-  br label %bb1
-
-bb1:                                              ; preds = %bb
-  br label %bb3
-
-bb2:                                              ; preds = %bb2
-  br label %bb2
-
-bb3:                                              ; preds = %bb8, %bb1
-  switch i32 undef, label %bb8 [
-    i32 0, label %bb4
-    i32 1, label %bb6
-    i32 2, label %bb5
-  ]
+  br label %loop
 
-bb4:                                              ; preds = %bb3
+loop:                                              ; preds = %bb, %loop
   %tmp = lshr exact i32 undef, 16
-  br label %bb6
+  br label %loop
 
-bb5:                                              ; preds = %bb3
-  br label %bb8
-
-bb6:                                              ; preds = %bb4, %bb3
-  br label %bb8
-
-bb7:                                              ; No predecessors!
+unreached:                                              ; No predecessors!
   ret i32 %tmp
-
-bb8:                                              ; preds = %bb6, %bb5, %bb3
-  br label %bb3
 }


        


More information about the llvm-commits mailing list