[llvm-branch-commits] [llvm] a820261 - [test] Fix store_cost.ll under NPM

Arthur Eubanks via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Dec 7 21:24:01 PST 2020


Author: Arthur Eubanks
Date: 2020-12-07T21:19:05-08:00
New Revision: a820261bf31dfd87406138c38da6499cf0964ba4

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

LOG: [test] Fix store_cost.ll under NPM

The NPM processes loops in forward program order, whereas the legacy PM
processes them in reverse program order. No reason to test both PMs
here, so just stick to the NPM.

Added: 
    

Modified: 
    llvm/test/Transforms/LoopUnroll/X86/store_cost.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/LoopUnroll/X86/store_cost.ll b/llvm/test/Transforms/LoopUnroll/X86/store_cost.ll
index f15b82d8162e..c92afceeaf89 100644
--- a/llvm/test/Transforms/LoopUnroll/X86/store_cost.ll
+++ b/llvm/test/Transforms/LoopUnroll/X86/store_cost.ll
@@ -1,14 +1,14 @@
 ; REQUIRES: asserts
-; RUN: opt -mcpu=core-avx2 -loop-unroll --debug-only=loop-unroll -S -unroll-allow-partial < %s 2>&1 | FileCheck %s
+; RUN: opt -mcpu=core-avx2 -passes=loop-unroll -debug-only=loop-unroll -S -unroll-allow-partial < %s 2>&1 | FileCheck %s
 
 target triple = "x86_64-unknown-linux-gnu"
 
-; CHECK: Loop Unroll: F[foo] Loop %loop.2.header
-; CHECK: Loop Size = 27
-; CHECK-NOT: UNROLLING loop %loop.2.header
 ; CHECK: Loop Unroll: F[foo] Loop %loop.header
 ; CHECK:   Loop Size = 25
 ; CHECK: UNROLLING loop %loop.header by 2 
+; CHECK: Loop Unroll: F[foo] Loop %loop.2.header
+; CHECK: Loop Size = 27
+; CHECK-NOT: UNROLLING loop %loop.2.header
 
 define void @foo(i32 * %out) {
 entry:


        


More information about the llvm-branch-commits mailing list