summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineBlockPlacement.cpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2017-08-23 03:17:59 +0000
committerMatthias Braun <matze@braunis.de>2017-08-23 03:17:59 +0000
commit8426d1342d82b365f4997c3d222c349fe7fba2ac (patch)
tree97ebae8104e0c0a140bc498aa1e61a6631db5b6a /llvm/lib/CodeGen/MachineBlockPlacement.cpp
parent498117bf11d8e7be5770f5f16da398a5e372c4be (diff)
downloadbcm5719-llvm-8426d1342d82b365f4997c3d222c349fe7fba2ac.tar.gz
bcm5719-llvm-8426d1342d82b365f4997c3d222c349fe7fba2ac.zip
Add test case for r311511
This also changes the TailDuplicator to be configured explicitely pre/post regalloc rather than relying on the isSSA() flag. This was necessary to have `llc -run-pass` work reliably. llvm-svn: 311520
Diffstat (limited to 'llvm/lib/CodeGen/MachineBlockPlacement.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineBlockPlacement.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineBlockPlacement.cpp b/llvm/lib/CodeGen/MachineBlockPlacement.cpp
index 65330308dad..c30f306a169 100644
--- a/llvm/lib/CodeGen/MachineBlockPlacement.cpp
+++ b/llvm/lib/CodeGen/MachineBlockPlacement.cpp
@@ -2729,7 +2729,8 @@ bool MachineBlockPlacement::runOnMachineFunction(MachineFunction &MF) {
MPDT = &getAnalysis<MachinePostDominatorTree>();
if (MF.getFunction()->optForSize())
TailDupSize = 1;
- TailDup.initMF(MF, MBPI, /* LayoutMode */ true, TailDupSize);
+ bool PreRegAlloc = false;
+ TailDup.initMF(MF, PreRegAlloc, MBPI, /* LayoutMode */ true, TailDupSize);
precomputeTriangleChains();
}
OpenPOWER on IntegriCloud