diff options
author | Wei Mi <wmi@google.com> | 2017-07-07 00:11:05 +0000 |
---|---|---|
committer | Wei Mi <wmi@google.com> | 2017-07-07 00:11:05 +0000 |
commit | 7586755013fbea57872dbca1177a5eae2de560c2 (patch) | |
tree | 062bfa63564c39a4698392d80036ba1c45f9e8aa /llvm/test/Transforms | |
parent | 85ca1df4725511987eae66392b18968133e4a74b (diff) | |
download | bcm5719-llvm-7586755013fbea57872dbca1177a5eae2de560c2.tar.gz bcm5719-llvm-7586755013fbea57872dbca1177a5eae2de560c2.zip |
[ConstHoisting] Turn on consthoist-with-block-frequency by default.
Using profile information to guide consthoisting is generally helpful for
performance, so the patch turns it on by default. No compile time or perf
regression were found using spec2000 and spec2006 on x86. Some significant
improvement (>20%) was seen on internal benchmarks.
Differential Revision: https://reviews.llvm.org/D35063
llvm-svn: 307338
Diffstat (limited to 'llvm/test/Transforms')
-rw-r--r-- | llvm/test/Transforms/ConstantHoisting/X86/ehpad.ll | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/test/Transforms/ConstantHoisting/X86/ehpad.ll b/llvm/test/Transforms/ConstantHoisting/X86/ehpad.ll index 4f87572f344..5e345c4515d 100644 --- a/llvm/test/Transforms/ConstantHoisting/X86/ehpad.ll +++ b/llvm/test/Transforms/ConstantHoisting/X86/ehpad.ll @@ -1,9 +1,6 @@ -; RUN: opt -S -consthoist < %s | FileCheck %s +; RUN: opt -S -consthoist -consthoist-with-block-frequency=false < %s | FileCheck %s ; RUN: opt -S -consthoist -consthoist-with-block-frequency=true < %s | FileCheck --check-prefix=BFIHOIST %s -; FIXME: The catchpad doesn't even use the constant, so a better fix would be to -; insert the bitcast in the catchpad block. - target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-windows-msvc" |