summaryrefslogtreecommitdiff
path: root/test/CodeGen/Generic
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-11-21 20:18:40 +0000
committerBill Wendling <isanbard@gmail.com>2013-11-21 20:18:40 +0000
commit54075bbea7e70fea6cdb9e5e89b066118c1d314b (patch)
treee75c0a378f234ff9e3f38c2cd2b57d6e439d7487 /test/CodeGen/Generic
parent11d31dff58dbe94423478d731cb81677d2fe4b7c (diff)
downloadllvm-54075bbea7e70fea6cdb9e5e89b066118c1d314b.tar.gz
llvm-54075bbea7e70fea6cdb9e5e89b066118c1d314b.tar.bz2
llvm-54075bbea7e70fea6cdb9e5e89b066118c1d314b.tar.xz
Merging r195339:
------------------------------------------------------------------------ r195339 | chapuni | 2013-11-21 02:55:15 -0800 (Thu, 21 Nov 2013) | 5 lines Revert r195317 (and r195333), "Teach ISel not to optimize 'optnone' functions." It broke, at least, i686 target. It is reproducible with "llc -mtriple=i686-unknown". FYI, it didn't appear to add either "-O0" or "-fast-isel". ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_34@195375 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Generic')
-rw-r--r--test/CodeGen/Generic/isel-optnone.ll32
1 files changed, 0 insertions, 32 deletions
diff --git a/test/CodeGen/Generic/isel-optnone.ll b/test/CodeGen/Generic/isel-optnone.ll
deleted file mode 100644
index f4916dafb8..0000000000
--- a/test/CodeGen/Generic/isel-optnone.ll
+++ /dev/null
@@ -1,32 +0,0 @@
-; RUN: llc -debug < %s -o /dev/null 2>&1 | FileCheck %s
-; REQUIRES: asserts
-
-; Verify that the backend correctly overrides the optimization level
-; of optnone functions during instruction selection.
-
-define float @foo(float %x) #0 {
-entry:
- %add = fadd fast float %x, %x
- %add1 = fadd fast float %add, %x
- ret float %add1
-}
-
-; CHECK-NOT: Changing optimization level for Function foo
-; CHECK-NOT: Restoring optimization level for Function foo
-
-; Function Attrs: noinline optnone
-define float @fooWithOptnone(float %x) #1 {
-entry:
- %add = fadd fast float %x, %x
- %add1 = fadd fast float %add, %x
- ret float %add1
-}
-
-; CHECK: Changing optimization level for Function fooWithOptnone
-; CHECK-NEXT: Before: -O2 ; After: -O0
-
-; CHECK: Restoring optimization level for Function fooWithOptnone
-; CHECK-NEXT: Before: -O0 ; After: -O2
-
-attributes #0 = { "unsafe-fp-math"="true" }
-attributes #1 = { noinline optnone "unsafe-fp-math"="true" }