diff options
author | Matthias Braun <matze@braunis.de> | 2017-08-23 03:17:59 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2017-08-23 03:17:59 +0000 |
commit | 8426d1342d82b365f4997c3d222c349fe7fba2ac (patch) | |
tree | 97ebae8104e0c0a140bc498aa1e61a6631db5b6a /llvm/lib/CodeGen/TailDuplicator.cpp | |
parent | 498117bf11d8e7be5770f5f16da398a5e372c4be (diff) | |
download | bcm5719-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/TailDuplicator.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TailDuplicator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/TailDuplicator.cpp b/llvm/lib/CodeGen/TailDuplicator.cpp index 0f22040f3ae..bd3a20f936d 100644 --- a/llvm/lib/CodeGen/TailDuplicator.cpp +++ b/llvm/lib/CodeGen/TailDuplicator.cpp @@ -75,7 +75,7 @@ static cl::opt<bool> static cl::opt<unsigned> TailDupLimit("tail-dup-limit", cl::init(~0U), cl::Hidden); -void TailDuplicator::initMF(MachineFunction &MFin, +void TailDuplicator::initMF(MachineFunction &MFin, bool PreRegAlloc, const MachineBranchProbabilityInfo *MBPIin, bool LayoutModeIn, unsigned TailDupSizeIn) { MF = &MFin; @@ -89,7 +89,7 @@ void TailDuplicator::initMF(MachineFunction &MFin, assert(MBPI != nullptr && "Machine Branch Probability Info required"); LayoutMode = LayoutModeIn; - PreRegAlloc = MRI->isSSA(); + this->PreRegAlloc = PreRegAlloc; } static void VerifyPHIs(MachineFunction &MF, bool CheckExtra) { |