summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/HotColdSplit/X86/outline-expensive.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Transforms/HotColdSplit/X86/outline-expensive.ll')
-rw-r--r--llvm/test/Transforms/HotColdSplit/X86/outline-expensive.ll25
1 files changed, 0 insertions, 25 deletions
diff --git a/llvm/test/Transforms/HotColdSplit/X86/outline-expensive.ll b/llvm/test/Transforms/HotColdSplit/X86/outline-expensive.ll
deleted file mode 100644
index 3f04283b0c1..00000000000
--- a/llvm/test/Transforms/HotColdSplit/X86/outline-expensive.ll
+++ /dev/null
@@ -1,25 +0,0 @@
-; The magic number 6 comes from (1 * TCC_Expensive) + (1 * CostOfCallX86).
-; RUN: opt -hotcoldsplit -hotcoldsplit-threshold=6 -S < %s | FileCheck %s
-
-; Test that we outline even though there are only two cold instructions. TTI
-; should determine that they are expensive in terms of code size.
-
-target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
-target triple = "x86_64-apple-macosx10.14.0"
-
-; CHECK-LABEL: @fun
-; CHECK: call void @fun.cold.1
-define void @fun(i32 %x) {
-entry:
- br i1 undef, label %if.then, label %if.else
-
-if.then:
- ret void
-
-if.else:
- %y = sdiv i32 %x, 111
- call void @sink(i32 %y)
- ret void
-}
-
-declare void @sink(i32 %x) cold
OpenPOWER on IntegriCloud