summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/block-placement.ll
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2013-06-24 01:55:01 +0000
committerAndrew Trick <atrick@apple.com>2013-06-24 01:55:01 +0000
commitf7b5e016363b664461f33a4a391b27bea637209d (patch)
tree7257a46145f5e57cf4bda31dc08f48401278fb2f /test/CodeGen/X86/block-placement.ll
parent722b0a4d293b16eebaed94ae65d5f11743cbcea5 (diff)
downloadllvm-f7b5e016363b664461f33a4a391b27bea637209d.tar.gz
llvm-f7b5e016363b664461f33a4a391b27bea637209d.tar.bz2
llvm-f7b5e016363b664461f33a4a391b27bea637209d.tar.xz
Fix tail merging to assign the (more) correct BasicBlock when splitting.
This makes it possible to write unit tests that are less susceptible to minor code motion, particularly copy placement. block-placement.ll covers this case with -pre-RA-sched=source which will soon be default. One incorrectly named block is already fixed, but without this fix, enabling new coalescing and scheduling would cause more failures. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184680 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/block-placement.ll')
-rw-r--r--test/CodeGen/X86/block-placement.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/X86/block-placement.ll b/test/CodeGen/X86/block-placement.ll
index be627e08e0..139f8b029b 100644
--- a/test/CodeGen/X86/block-placement.ll
+++ b/test/CodeGen/X86/block-placement.ll
@@ -1,4 +1,4 @@
-; RUN: llc -mtriple=i686-linux < %s | FileCheck %s
+; RUN: llc -mtriple=i686-linux -pre-RA-sched=source < %s | FileCheck %s
declare void @error(i32 %i, i32 %a, i32 %b)
@@ -997,7 +997,7 @@ define void @benchmark_heapsort(i32 %n, double* nocapture %ra) {
; CHECK: %while.body
; CHECK: %land.lhs.true
; CHECK: %if.then19
-; CHECK: %if.then19
+; CHECK: %if.end20
; CHECK: %if.then8
; CHECK: ret