mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Re-commit "Increase the size of this SmallVector in PeepholeOptimizer." (r215340)
This time, also update the function that receives a reference to the SmallPtrSet as a parameter. llvm-svn: 215342
This commit is contained in:
parent
6d6e4c6f00
commit
dc137d2629
@ -130,7 +130,7 @@ namespace {
|
|||||||
private:
|
private:
|
||||||
bool optimizeCmpInstr(MachineInstr *MI, MachineBasicBlock *MBB);
|
bool optimizeCmpInstr(MachineInstr *MI, MachineBasicBlock *MBB);
|
||||||
bool optimizeExtInstr(MachineInstr *MI, MachineBasicBlock *MBB,
|
bool optimizeExtInstr(MachineInstr *MI, MachineBasicBlock *MBB,
|
||||||
SmallPtrSet<MachineInstr*, 8> &LocalMIs);
|
SmallPtrSet<MachineInstr*, 16> &LocalMIs);
|
||||||
bool optimizeSelect(MachineInstr *MI);
|
bool optimizeSelect(MachineInstr *MI);
|
||||||
bool optimizeCopyOrBitcast(MachineInstr *MI);
|
bool optimizeCopyOrBitcast(MachineInstr *MI);
|
||||||
bool isMoveImmediate(MachineInstr *MI,
|
bool isMoveImmediate(MachineInstr *MI,
|
||||||
@ -262,7 +262,7 @@ INITIALIZE_PASS_END(PeepholeOptimizer, "peephole-opts",
|
|||||||
/// debug uses.
|
/// debug uses.
|
||||||
bool PeepholeOptimizer::
|
bool PeepholeOptimizer::
|
||||||
optimizeExtInstr(MachineInstr *MI, MachineBasicBlock *MBB,
|
optimizeExtInstr(MachineInstr *MI, MachineBasicBlock *MBB,
|
||||||
SmallPtrSet<MachineInstr*, 8> &LocalMIs) {
|
SmallPtrSet<MachineInstr*, 16> &LocalMIs) {
|
||||||
unsigned SrcReg, DstReg, SubIdx;
|
unsigned SrcReg, DstReg, SubIdx;
|
||||||
if (!TII->isCoalescableExtInstr(*MI, SrcReg, DstReg, SubIdx))
|
if (!TII->isCoalescableExtInstr(*MI, SrcReg, DstReg, SubIdx))
|
||||||
return false;
|
return false;
|
||||||
@ -687,7 +687,7 @@ bool PeepholeOptimizer::runOnMachineFunction(MachineFunction &MF) {
|
|||||||
MachineBasicBlock *MBB = &*I;
|
MachineBasicBlock *MBB = &*I;
|
||||||
|
|
||||||
bool SeenMoveImm = false;
|
bool SeenMoveImm = false;
|
||||||
SmallPtrSet<MachineInstr*, 8> LocalMIs;
|
SmallPtrSet<MachineInstr*, 16> LocalMIs;
|
||||||
SmallSet<unsigned, 4> ImmDefRegs;
|
SmallSet<unsigned, 4> ImmDefRegs;
|
||||||
DenseMap<unsigned, MachineInstr*> ImmDefMIs;
|
DenseMap<unsigned, MachineInstr*> ImmDefMIs;
|
||||||
SmallSet<unsigned, 16> FoldAsLoadDefCandidates;
|
SmallSet<unsigned, 16> FoldAsLoadDefCandidates;
|
||||||
|
Loading…
Reference in New Issue
Block a user