diff options
author | Wei Mi <wmi@google.com> | 2018-05-01 17:19:25 +0000 |
---|---|---|
committer | Wei Mi <wmi@google.com> | 2018-05-01 17:19:25 +0000 |
commit | fa862c45bc5af50638d0c33226fda3f25f67b9f4 (patch) | |
tree | 047e66cecabd343bb3638c2dad1bb15cbcfce290 | |
parent | 5a3c9ee93d2ec10be735486e7890db4dfe9f96c2 (diff) | |
download | bcm5719-llvm-fa862c45bc5af50638d0c33226fda3f25f67b9f4.tar.gz bcm5719-llvm-fa862c45bc5af50638d0c33226fda3f25f67b9f4.zip |
Use no-op opt run to eliminate the difference in bb pred comment, per chandler's suggestion. It is better than using sed on portability.
llvm-svn: 331286
-rw-r--r-- | llvm/test/Other/pr32085.ll | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/llvm/test/Other/pr32085.ll b/llvm/test/Other/pr32085.ll index 52281cad19b..3676ea8e117 100644 --- a/llvm/test/Other/pr32085.ll +++ b/llvm/test/Other/pr32085.ll @@ -1,11 +1,8 @@ ; RUN: opt -S -O1 < %s -o %t1.ll +; RUN: opt -S < %t1.ll -o %t2.ll +; RUN: opt -S -simplifycfg < %t1.ll -o %t3.ll ;; Show that there's no difference after running another simplify CFG -; RUN: opt -S -simplifycfg < %t1.ll -o %t2.ll -;; Strip the BB predecessors comments because it may have different -;; output order. -; RUN: sed 's/; preds = .*//g' %t1.ll > %t1.strip.ll -; RUN: sed 's/; preds = .*//g' %t2.ll > %t2.strip.ll -; RUN: diff %t1.strip.ll %t2.strip.ll +; RUN: diff %t2.ll %t3.ll ; Test from LoopSink pass, leaves some single-entry single-exit basic blocks. ; After LoopSink, we get a basic block .exit.loopexit which has one entry and |