diff options
author | Hans Wennborg <hans@hanshq.net> | 2014-08-11 02:50:43 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2014-08-11 02:50:43 +0000 |
commit | 941a5709dc4f03ed00273cb2ea7dca91e960de45 (patch) | |
tree | 6f8d111aa390052dede686756573b3471a7a5b7f /llvm/lib/CodeGen/PeepholeOptimizer.cpp | |
parent | 98b3cf8594dde641d87877d850ff71cf35076bab (diff) | |
download | bcm5719-llvm-941a5709dc4f03ed00273cb2ea7dca91e960de45.tar.gz bcm5719-llvm-941a5709dc4f03ed00273cb2ea7dca91e960de45.zip |
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
Diffstat (limited to 'llvm/lib/CodeGen/PeepholeOptimizer.cpp')
-rw-r--r-- | llvm/lib/CodeGen/PeepholeOptimizer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/PeepholeOptimizer.cpp b/llvm/lib/CodeGen/PeepholeOptimizer.cpp index 768fcf72146..51cb092349d 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*, 8> &LocalMIs); + SmallPtrSet<MachineInstr*, 16> &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*, 8> &LocalMIs) { + SmallPtrSet<MachineInstr*, 16> &LocalMIs) { unsigned SrcReg, DstReg, SubIdx; if (!TII->isCoalescableExtInstr(*MI, SrcReg, DstReg, SubIdx)) return false; @@ -687,7 +687,7 @@ bool PeepholeOptimizer::runOnMachineFunction(MachineFunction &MF) { MachineBasicBlock *MBB = &*I; bool SeenMoveImm = false; - SmallPtrSet<MachineInstr*, 8> LocalMIs; + SmallPtrSet<MachineInstr*, 16> LocalMIs; SmallSet<unsigned, 4> ImmDefRegs; DenseMap<unsigned, MachineInstr*> ImmDefMIs; SmallSet<unsigned, 16> FoldAsLoadDefCandidates; |