summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/PeepholeOptimizer.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2014-08-11 13:52:46 +0000
committerHans Wennborg <hans@hanshq.net>2014-08-11 13:52:46 +0000
commit97a59ae5896542ec225b96a10eae0fd185573307 (patch)
treefd3bb7a001591c35b6e8fe8a2e1d0b45ba8515c2 /llvm/lib/CodeGen/PeepholeOptimizer.cpp
parent5f5b8cc04f33a032db2500883670a0d0d0fbfe16 (diff)
downloadbcm5719-llvm-97a59ae5896542ec225b96a10eae0fd185573307.tar.gz
bcm5719-llvm-97a59ae5896542ec225b96a10eae0fd185573307.zip
PeepholeOptimizer: make parameter ref to SmallPtrSetImpl
This makes the function type independent of the in-line size of LocalMIs. llvm-svn: 215356
Diffstat (limited to 'llvm/lib/CodeGen/PeepholeOptimizer.cpp')
-rw-r--r--llvm/lib/CodeGen/PeepholeOptimizer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/PeepholeOptimizer.cpp b/llvm/lib/CodeGen/PeepholeOptimizer.cpp
index 51cb092349d..5027199e88b 100644
--- a/llvm/lib/CodeGen/PeepholeOptimizer.cpp
+++ b/llvm/lib/CodeGen/PeepholeOptimizer.cpp
@@ -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;
OpenPOWER on IntegriCloud