From: Arthur Eubanks Date: Tue, 8 Dec 2020 01:36:18 +0000 (-0800) Subject: [test] Fix LoopFusion tests under NewPM X-Git-Tag: llvmorg-13-init~4108 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=689b8e91f256b62519042c9a118d4b0ec1553b18;p=platform%2Fupstream%2Fllvm.git [test] Fix LoopFusion tests under NewPM 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. --- diff --git a/llvm/test/Transforms/LoopFusion/cannot_fuse.ll b/llvm/test/Transforms/LoopFusion/cannot_fuse.ll index db099c9..030e79c 100644 --- a/llvm/test/Transforms/LoopFusion/cannot_fuse.ll +++ b/llvm/test/Transforms/LoopFusion/cannot_fuse.ll @@ -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 diff --git a/llvm/test/Transforms/LoopFusion/simple.ll b/llvm/test/Transforms/LoopFusion/simple.ll index bb4cf17..f3ccb0f 100644 --- a/llvm/test/Transforms/LoopFusion/simple.ll +++ b/llvm/test/Transforms/LoopFusion/simple.ll @@ -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