llvm.org GIT mirror llvm / d3598cc
Merge from mainline. Move the code that adds the DeadMachineInstructionElimPass from target-independent code to target-specific code. This prevents it from running on targets that aren't using fast-isel. In addition to saving compile time, this addresses the problem that not all targets are prepared for it. In order to use this pass, all instructions must declare all their fixed uses and defs of physical registers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_24@58425 91177308-0d34-0410-b5e6-96231b3b80d8 Tanya Lattner 12 years ago
2 changed file(s) with 5 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
188188 if (PrintMachineCode)
189189 PM.add(createMachineFunctionPrinterPass(cerr));
191 // If we're using Fast-ISel, clean up the mess.
192 if (EnableFastISel)
193 PM.add(createDeadMachineInstructionElimPass());
195191 if (EnableLICM)
196192 PM.add(createMachineLICMPass());
173173 bool X86TargetMachine::addInstSelector(PassManagerBase &PM, bool Fast) {
174174 // Install an instruction selector.
175175 PM.add(createX86ISelDag(*this, Fast));
177 // If we're using Fast-ISel, clean up the mess.
178 if (EnableFastISel)
179 PM.add(createDeadMachineInstructionElimPass());
176181 return false;
177182 }