From f2f0474c93ee67421fae007528ae4be20ae384f8 Mon Sep 17 00:00:00 2001 From: Arthur Eubanks Date: Mon, 24 Aug 2020 13:43:02 -0700 Subject: [PATCH] [test] Fix FullUnroll.ll I believe the intention of this test added in https://reviews.llvm.org/D71687 was to test LoopFullUnrollPass with clang's -fno-unroll-loops, not its interaction with optnone. Loop unrolling passes don't run under optnone/-O0. Also added back unintentionally removed -disable-loop-unrolling from https://reviews.llvm.org/D85578. Reviewed By: echristo Differential Revision: https://reviews.llvm.org/D86485 --- llvm/test/Transforms/LoopUnroll/FullUnroll.ll | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/test/Transforms/LoopUnroll/FullUnroll.ll b/llvm/test/Transforms/LoopUnroll/FullUnroll.ll index 2d78714..cc79501 100644 --- a/llvm/test/Transforms/LoopUnroll/FullUnroll.ll +++ b/llvm/test/Transforms/LoopUnroll/FullUnroll.ll @@ -1,4 +1,4 @@ -; RUN: opt -passes='loop-unroll-full' -disable-verify --mtriple x86_64-pc-linux-gnu -S -o - %s | FileCheck %s +; RUN: opt -passes='loop-unroll-full' -disable-verify -disable-loop-unrolling=true --mtriple x86_64-pc-linux-gnu -S -o - %s | FileCheck %s ; This checks that the loop full unroller will fire in the new pass manager ; when forced via #pragma in the source (or annotation in the code). @@ -39,7 +39,7 @@ bb24: ; preds = %bb3.loopexit ret void } -attributes #0 = { noinline nounwind optnone uwtable } +attributes #0 = { nounwind uwtable } !llvm.module.flags = !{!0} -- 2.7.4