summaryrefslogtreecommitdiff
path: root/test/CodeGen/Generic
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2013-11-21 10:55:15 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2013-11-21 10:55:15 +0000
commitb05bddb4bae4e693225df4c517d9b368d923f1b3 (patch)
tree795cbd9449035828c4a27d0b4dd6c261da4f3b9d /test/CodeGen/Generic
parentedd2b4913433d92fa6b6b89c31a2837d1bba32a5 (diff)
downloadllvm-b05bddb4bae4e693225df4c517d9b368d923f1b3.tar.gz
llvm-b05bddb4bae4e693225df4c517d9b368d923f1b3.tar.bz2
llvm-b05bddb4bae4e693225df4c517d9b368d923f1b3.tar.xz
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/trunk@195339 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" }