summaryrefslogtreecommitdiffstats
path: root/llvm/test
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
commit43aa9396258f5ee148aad9d36e07840b902ab6a4 (patch)
treec1bfc75cafef3fc1d1354a2165f14212b4f2c292 /llvm/test
parent2846e9ef1529debcffcb7b10a5c289f00cd35c9f (diff)
downloadbcm5719-llvm-43aa9396258f5ee148aad9d36e07840b902ab6a4.tar.gz
bcm5719-llvm-43aa9396258f5ee148aad9d36e07840b902ab6a4.zip
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". llvm-svn: 195339
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/Generic/isel-optnone.ll32
1 files changed, 0 insertions, 32 deletions
diff --git a/llvm/test/CodeGen/Generic/isel-optnone.ll b/llvm/test/CodeGen/Generic/isel-optnone.ll
deleted file mode 100644
index f4916dafb84..00000000000
--- a/llvm/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" }
OpenPOWER on IntegriCloud