[llvm] r215340 - Increase the size of this SmallVector in PeepholeOptimizer.
Hans Wennborg
hans at hanshq.net
Sun Aug 10 19:21:34 PDT 2014
Author: hans
Date: Sun Aug 10 21:21:34 2014
New Revision: 215340
URL: http://llvm.org/viewvc/llvm-project?rev=215340&view=rev
Log:
Increase the size of this SmallVector in PeepholeOptimizer.
During a Clang build, the median size of this was 9
Modified:
llvm/trunk/lib/CodeGen/PeepholeOptimizer.cpp
Modified: llvm/trunk/lib/CodeGen/PeepholeOptimizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/PeepholeOptimizer.cpp?rev=215340&r1=215339&r2=215340&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/PeepholeOptimizer.cpp (original)
+++ llvm/trunk/lib/CodeGen/PeepholeOptimizer.cpp Sun Aug 10 21:21:34 2014
@@ -687,7 +687,7 @@ bool PeepholeOptimizer::runOnMachineFunc
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;
More information about the llvm-commits
mailing list