mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
[X86] Remove unused code from X86 optimize LEAs. NFC.
This patch removes unused code which is no longer required because of changes to the DIExpression::prepend function. llvm-svn: 302219
This commit is contained in:
parent
7ccdc49953
commit
0330b66ab0
@ -223,8 +223,6 @@ public:
|
||||
|
||||
StringRef getPassName() const override { return "X86 LEA Optimize"; }
|
||||
|
||||
bool doInitialization(Module &M) override;
|
||||
|
||||
/// \brief Loop over all of the basic blocks, replacing address
|
||||
/// calculations in load and store instructions, if it's already
|
||||
/// been calculated by LEA. Also, remove redundant LEAs.
|
||||
@ -280,7 +278,6 @@ private:
|
||||
MachineRegisterInfo *MRI;
|
||||
const X86InstrInfo *TII;
|
||||
const X86RegisterInfo *TRI;
|
||||
Module *TheModule;
|
||||
|
||||
static char ID;
|
||||
};
|
||||
@ -649,11 +646,6 @@ bool OptimizeLEAPass::removeRedundantLEAs(MemOpMap &LEAs) {
|
||||
return Changed;
|
||||
}
|
||||
|
||||
bool OptimizeLEAPass::doInitialization(Module &M) {
|
||||
TheModule = &M;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool OptimizeLEAPass::runOnMachineFunction(MachineFunction &MF) {
|
||||
bool Changed = false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user