mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-30 04:35:00 +00:00
PeepholeOptimizer: make parameter ref to SmallPtrSetImpl
This makes the function type independent of the in-line size of LocalMIs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215356 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4d97a1a559
commit
efa23d332a
@ -130,7 +130,7 @@ namespace {
|
||||
private:
|
||||
bool optimizeCmpInstr(MachineInstr *MI, MachineBasicBlock *MBB);
|
||||
bool optimizeExtInstr(MachineInstr *MI, MachineBasicBlock *MBB,
|
||||
SmallPtrSet<MachineInstr*, 16> &LocalMIs);
|
||||
SmallPtrSetImpl<MachineInstr*> &LocalMIs);
|
||||
bool optimizeSelect(MachineInstr *MI);
|
||||
bool optimizeCopyOrBitcast(MachineInstr *MI);
|
||||
bool isMoveImmediate(MachineInstr *MI,
|
||||
@ -262,7 +262,7 @@ INITIALIZE_PASS_END(PeepholeOptimizer, "peephole-opts",
|
||||
/// debug uses.
|
||||
bool PeepholeOptimizer::
|
||||
optimizeExtInstr(MachineInstr *MI, MachineBasicBlock *MBB,
|
||||
SmallPtrSet<MachineInstr*, 16> &LocalMIs) {
|
||||
SmallPtrSetImpl<MachineInstr*> &LocalMIs) {
|
||||
unsigned SrcReg, DstReg, SubIdx;
|
||||
if (!TII->isCoalescableExtInstr(*MI, SrcReg, DstReg, SubIdx))
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user