mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-25 00:29:20 +00:00
Enable stack slot coloring DCE. Evan's spiller fixes were needed before this could happen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65501 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
236aa8a503
commit
130abb29cc
@ -30,12 +30,7 @@ using namespace llvm;
|
||||
static cl::opt<bool>
|
||||
DisableSharing("no-stack-slot-sharing",
|
||||
cl::init(false), cl::Hidden,
|
||||
cl::desc("Surpress slot sharing during stack coloring"));
|
||||
|
||||
static cl::opt<bool>
|
||||
EnableDCE("enable-ssc-dce",
|
||||
cl::init(false), cl::Hidden,
|
||||
cl::desc("Enable slot coloring DCE"));
|
||||
cl::desc("Suppress slot sharing during stack coloring"));
|
||||
|
||||
static cl::opt<int> DCELimit("ssc-dce-limit", cl::init(-1), cl::Hidden);
|
||||
|
||||
@ -342,7 +337,7 @@ bool StackSlotColoring::runOnMachineFunction(MachineFunction &MF) {
|
||||
Assignments[i].clear();
|
||||
Assignments.clear();
|
||||
|
||||
if (EnableDCE) {
|
||||
if (Changed) {
|
||||
for (MachineFunction::iterator I = MF.begin(), E = MF.end(); I != E; ++I)
|
||||
Changed |= removeDeadStores(I);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user