[llvm] f2f0474 - [test] Fix FullUnroll.ll

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 17 16:00:19 PDT 2020


Author: Arthur Eubanks
Date: 2020-09-17T15:56:13-07:00
New Revision: f2f0474c93ee67421fae007528ae4be20ae384f8

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

LOG: [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

Added: 
    

Modified: 
    llvm/test/Transforms/LoopUnroll/FullUnroll.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/LoopUnroll/FullUnroll.ll b/llvm/test/Transforms/LoopUnroll/FullUnroll.ll
index 2d78714eae75..cc7950148ee3 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}
 


        


More information about the llvm-commits mailing list