diff options
author | Andrew Trick <atrick@apple.com> | 2014-02-27 21:37:33 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2014-02-27 21:37:33 +0000 |
commit | b1531e582fa5ce7443abf71f21d2785441d30594 (patch) | |
tree | 77d69b2ab06b942eb0a0926ddacaf3b1ac88c86e /llvm/lib/CodeGen | |
parent | aa895884b26d8295dedb7240d4d9eacf65756ead (diff) | |
download | bcm5719-llvm-b1531e582fa5ce7443abf71f21d2785441d30594.tar.gz bcm5719-llvm-b1531e582fa5ce7443abf71f21d2785441d30594.zip |
Provide a target override for the latest regalloc heuristic.
This is a temporary workaround for native arm linux builds:
PR18996: Changing regalloc order breaks "lencod" on native arm linux builds.
llvm-svn: 202433
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocGreedy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocGreedy.cpp b/llvm/lib/CodeGen/RegAllocGreedy.cpp index 6e6a594479e..3372e261952 100644 --- a/llvm/lib/CodeGen/RegAllocGreedy.cpp +++ b/llvm/lib/CodeGen/RegAllocGreedy.cpp @@ -457,7 +457,7 @@ void RAGreedy::enqueue(PQueue &CurQueue, LiveInterval *LI) { // Giant live ranges fall back to the global assignment heuristic, which // prevents excessive spilling in pathological cases. bool ReverseLocal = TRI->reverseLocalAssignment(); - bool ForceGlobal = !ReverseLocal && + bool ForceGlobal = !ReverseLocal && TRI->mayOverrideLocalAssignment() && (Size / SlotIndex::InstrDist) > (2 * MRI->getRegClass(Reg)->getNumRegs()); if (ExtraRegInfo[Reg].Stage == RS_Assign && !ForceGlobal && !LI->empty() && |