From d2ce694ca0425796c775389d7937daa54d6dfbc8 Mon Sep 17 00:00:00 2001 From: Arthur Eubanks Date: Mon, 7 Dec 2020 23:04:33 -0800 Subject: [PATCH] [test] Fix loop-micro-op-buffer-size-t99.ll under NPM The NPM runs loop passes on loops in forward program order instead of the legacy PM's reverse program order, causing some debug output to be in a different order. --- .../AArch64/loop-micro-op-buffer-size-t99.ll | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/CodeGen/AArch64/loop-micro-op-buffer-size-t99.ll b/test/CodeGen/AArch64/loop-micro-op-buffer-size-t99.ll index 4dad5c33d20..d64d533f973 100644 --- a/test/CodeGen/AArch64/loop-micro-op-buffer-size-t99.ll +++ b/test/CodeGen/AArch64/loop-micro-op-buffer-size-t99.ll @@ -1,20 +1,20 @@ ; REQUIRES: asserts -; RUN: opt -mcpu=thunderx2t99 -loop-unroll --debug-only=loop-unroll --debug-only=basicblock-utils -S -unroll-allow-partial < %s 2>&1 | FileCheck %s +; RUN: opt -mcpu=thunderx2t99 -passes=loop-unroll --debug-only=loop-unroll --debug-only=basicblock-utils -S -unroll-allow-partial < %s 2>&1 | FileCheck %s target triple = "aarch64-unknown-linux-gnu" -; CHECK: Loop Unroll: F[foo] Loop %loop.2.header -; CHECK: Loop Size = 19 -; CHECK: Trip Count = 512 -; CHECK: Trip Multiple = 512 -; CHECK: UNROLLING loop %loop.2.header by 4 with a breakout at trip 0 -; CHECK: Merging: ; CHECK: Loop Unroll: F[foo] Loop %loop.header ; CHECK: Loop Size = 18 ; CHECK: Trip Count = 512 ; CHECK: Trip Multiple = 512 ; CHECK: UNROLLING loop %loop.header by 4 with a breakout at trip 0 ; CHECK: Merging: +; CHECK: Loop Unroll: F[foo] Loop %loop.2.header +; CHECK: Loop Size = 19 +; CHECK: Trip Count = 512 +; CHECK: Trip Multiple = 512 +; CHECK: UNROLLING loop %loop.2.header by 4 with a breakout at trip 0 +; CHECK: Merging: ; CHECK: %counter = phi i32 [ 0, %entry ], [ %inc.3, %loop.inc.3 ] ; CHECK: %val = add nuw nsw i32 %counter, 5 ; CHECK: %val1 = add nuw nsw i32 %counter, 6