[llvm] r290596 - Change a std::vector to SmallVector in NewGVN
Daniel Berlin via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 27 01:20:37 PST 2016
Author: dannyb
Date: Tue Dec 27 03:20:36 2016
New Revision: 290596
URL: http://llvm.org/viewvc/llvm-project?rev=290596&view=rev
Log:
Change a std::vector to SmallVector in NewGVN
Modified:
llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp?rev=290596&r1=290595&r2=290596&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp Tue Dec 27 03:20:36 2016
@@ -227,7 +227,7 @@ class NewGVN : public FunctionPass {
// DFS info.
DenseMap<const BasicBlock *, std::pair<int, int>> DFSDomMap;
DenseMap<const Value *, unsigned> InstrDFS;
- std::vector<Value *> DFSToInstr;
+ SmallVector<Value *, 32> DFSToInstr;
// Deletion info.
SmallPtrSet<Instruction *, 8> InstructionsToErase;
More information about the llvm-commits
mailing list