[test] Fix LoopFusion tests under NewPM
authorArthur Eubanks <aeubanks@google.com>
Tue, 8 Dec 2020 01:36:18 +0000 (17:36 -0800)
committerArthur Eubanks <aeubanks@google.com>
Tue, 8 Dec 2020 01:37:42 +0000 (17:37 -0800)
The legacy pass depended on -loop-simplify running. The NPM does not
allow for a non-analysis pass to depend on another non-analysis pass.

llvm/test/Transforms/LoopFusion/cannot_fuse.ll
llvm/test/Transforms/LoopFusion/simple.ll

index db099c9..030e79c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -loop-fusion -debug-only=loop-fusion -disable-output < %s 2>&1 | FileCheck %s
+; RUN: opt -S -loop-simplify -loop-fusion -debug-only=loop-fusion -disable-output < %s 2>&1 | FileCheck %s
 ; REQUIRES: asserts
 
 @B = common global [1024 x i32] zeroinitializer, align 16
index bb4cf17..f3ccb0f 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -S -loop-fusion < %s | FileCheck %s
+; RUN: opt -S -loop-simplify -loop-fusion < %s | FileCheck %s
 
 @B = common global [1024 x i32] zeroinitializer, align 16