[PATCH] D83525: Remove optnone from FullUnroll.ll

Arthur Eubanks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 9 17:23:03 PDT 2020


aeubanks created this revision.
aeubanks added a reviewer: echristo.
Herald added subscribers: llvm-commits, zzheng.
Herald added a project: LLVM.

The function shouldn't be optimized if it's marked with optnone.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D83525

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


Index: llvm/test/Transforms/LoopUnroll/FullUnroll.ll
===================================================================
--- llvm/test/Transforms/LoopUnroll/FullUnroll.ll
+++ llvm/test/Transforms/LoopUnroll/FullUnroll.ll
@@ -15,7 +15,7 @@
 ; CHECK: br label
 ; CHECK-NOT: br i1
 
-; Function Attrs: noinline nounwind optnone uwtable
+; Function Attrs: noinline nounwind uwtable
 define void @foo() #0 {
 bb:
   %tmp = alloca [5 x i32*], align 16
@@ -68,7 +68,7 @@
   ret void
 }
 
-attributes #0 = { noinline nounwind optnone uwtable }
+attributes #0 = { noinline nounwind uwtable }
 
 !llvm.module.flags = !{!0}
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83525.276883.patch
Type: text/x-patch
Size: 615 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200710/412caa05/attachment.bin>


More information about the llvm-commits mailing list