summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/PeepholeOptimizer.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2014-08-11 02:34:52 +0000
committerHans Wennborg <hans@hanshq.net>2014-08-11 02:34:52 +0000
commit98b3cf8594dde641d87877d850ff71cf35076bab (patch)
treed8c9718b0132c9623e0ed3f344a99bc5c3f04c10 /llvm/lib/CodeGen/PeepholeOptimizer.cpp
parent5b439f9c8a2ebc0cbfe18832efb234b0c5ded944 (diff)
downloadbcm5719-llvm-98b3cf8594dde641d87877d850ff71cf35076bab.tar.gz
bcm5719-llvm-98b3cf8594dde641d87877d850ff71cf35076bab.zip
Revert "Increase the size of this SmallVector in PeepholeOptimizer." (r215340)
That broke the build: /data/buildslave/clang-amd64-freebsd/src-llvm/lib/CodeGen/PeepholeOptimizer.cpp:729:46: error: non-const lvalue reference to type 'SmallPtrSet<[...], 8>' cannot bind to a value of unrelated type 'SmallPtrSet<[...], 16>' Changed |= optimizeExtInstr(MI, MBB, LocalMIs); ^~~~~~~~ /data/buildslave/clang-amd64-freebsd/src-llvm/lib/CodeGen/PeepholeOptimizer.cpp:265:49: note: passing argument to parameter 'LocalMIs' here SmallPtrSet<MachineInstr*, 8> &LocalMIs) { ^ llvm-svn: 215341
Diffstat (limited to 'llvm/lib/CodeGen/PeepholeOptimizer.cpp')
-rw-r--r--llvm/lib/CodeGen/PeepholeOptimizer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/PeepholeOptimizer.cpp b/llvm/lib/CodeGen/PeepholeOptimizer.cpp
index 0062b642eba..768fcf72146 100644
--- a/llvm/lib/CodeGen/PeepholeOptimizer.cpp
+++ b/llvm/lib/CodeGen/PeepholeOptimizer.cpp
@@ -687,7 +687,7 @@ bool PeepholeOptimizer::runOnMachineFunction(MachineFunction &MF) {
MachineBasicBlock *MBB = &*I;
bool SeenMoveImm = false;
- SmallPtrSet<MachineInstr*, 16> LocalMIs;
+ SmallPtrSet<MachineInstr*, 8> LocalMIs;
SmallSet<unsigned, 4> ImmDefRegs;
DenseMap<unsigned, MachineInstr*> ImmDefMIs;
SmallSet<unsigned, 16> FoldAsLoadDefCandidates;
OpenPOWER on IntegriCloud