diff options
author | Hans Wennborg <hans@hanshq.net> | 2014-08-11 02:34:52 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2014-08-11 02:34:52 +0000 |
commit | 98b3cf8594dde641d87877d850ff71cf35076bab (patch) | |
tree | d8c9718b0132c9623e0ed3f344a99bc5c3f04c10 /llvm/lib/CodeGen/PeepholeOptimizer.cpp | |
parent | 5b439f9c8a2ebc0cbfe18832efb234b0c5ded944 (diff) | |
download | bcm5719-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.cpp | 2 |
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; |