forked from OSchip/llvm-project
Remove option used to debug stack coloring bugs. It's no longer needed since stack coloring is now bug free.
llvm-svn: 52644
This commit is contained in:
parent
403e567043
commit
71013f8c78
|
@ -29,10 +29,6 @@ DisableSharing("no-stack-slot-sharing",
|
||||||
cl::init(false), cl::Hidden,
|
cl::init(false), cl::Hidden,
|
||||||
cl::desc("Surpress slot sharing during stack coloring"));
|
cl::desc("Surpress slot sharing during stack coloring"));
|
||||||
|
|
||||||
static cl::opt<int>
|
|
||||||
DeleteLimit("slot-delete-limit", cl::init(-1), cl::Hidden,
|
|
||||||
cl::desc("Stack coloring slot deletion limit"));
|
|
||||||
|
|
||||||
STATISTIC(NumEliminated, "Number of stack slots eliminated due to coloring");
|
STATISTIC(NumEliminated, "Number of stack slots eliminated due to coloring");
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
@ -156,8 +152,7 @@ StackSlotColoring::OverlapWithAssignments(LiveInterval *li, int Color) const {
|
||||||
int StackSlotColoring::ColorSlot(LiveInterval *li) {
|
int StackSlotColoring::ColorSlot(LiveInterval *li) {
|
||||||
int Color = -1;
|
int Color = -1;
|
||||||
bool Share = false;
|
bool Share = false;
|
||||||
if (!DisableSharing &&
|
if (!DisableSharing) {
|
||||||
(DeleteLimit == -1 || (int)NumEliminated < DeleteLimit)) {
|
|
||||||
// Check if it's possible to reuse any of the used colors.
|
// Check if it's possible to reuse any of the used colors.
|
||||||
Color = UsedColors.find_first();
|
Color = UsedColors.find_first();
|
||||||
while (Color != -1) {
|
while (Color != -1) {
|
||||||
|
|
Loading…
Reference in New Issue