aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/licm-nested.ll
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-10-10 19:09:20 +0000
committerDevang Patel <dpatel@apple.com>2011-10-10 19:09:20 +0000
commit9ac743a4ee61cb845bbe22a2f6898f38c2adafce (patch)
treec64733717dd89e7c30b5110cd18a084bc3726c04 /test/CodeGen/X86/licm-nested.ll
parent5a57168a55f23cff1f0d1c7ba4183b4182665e46 (diff)
downloadexternal_llvm-9ac743a4ee61cb845bbe22a2f6898f38c2adafce.zip
external_llvm-9ac743a4ee61cb845bbe22a2f6898f38c2adafce.tar.gz
external_llvm-9ac743a4ee61cb845bbe22a2f6898f38c2adafce.tar.bz2
Add dominance check for the instruction being hoisted.
For example, MachineLICM should not hoist a load that is not guaranteed to be executed. Radar 10254254. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141569 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/licm-nested.ll')
-rw-r--r--test/CodeGen/X86/licm-nested.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGen/X86/licm-nested.ll b/test/CodeGen/X86/licm-nested.ll
index b0105ac..901d987 100644
--- a/test/CodeGen/X86/licm-nested.ll
+++ b/test/CodeGen/X86/licm-nested.ll
@@ -1,4 +1,4 @@
-; RUN: llc -mtriple=x86_64-apple-darwin -march=x86-64 < %s -o /dev/null -stats -info-output-file - | grep machine-licm | grep 3
+; RUN: llc -mtriple=x86_64-apple-darwin -march=x86-64 < %s -o /dev/null -stats -info-output-file - | grep machine-licm | grep 2
; MachineLICM should be able to hoist the symbolic addresses out of
; the inner loops.