llvm.org GIT mirror llvm / c1376f3
Revert "Make OrderedInstructions and OrderedBasicBlock use AssertingVH, to try and catch mistakes" This reverts commit 50ec560f05dcb8a1be18be442660d0305bc7de25. It catches some bug in NewGVN it seems. I am in middle of something and will not be able to investigate Revert for now. http://lab.llvm.org:8011/builders/clang-atom-d525-fedora-rel/builds/6268 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306608 91177308-0d34-0410-b5e6-96231b3b80d8 Xin Tong 2 years ago
2 changed file(s) with 3 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
2424
2525 #include "llvm/ADT/DenseMap.h"
2626 #include "llvm/IR/BasicBlock.h"
27 #include "llvm/IR/ValueHandle.h"
2827
2928 namespace llvm {
3029
3433 class OrderedBasicBlock {
3534 private:
3635 /// \brief Map a instruction to its position in a BasicBlock.
37 SmallDenseMap<AssertingVH, unsigned, 32> NumberedInsts;
36 SmallDenseMap<const Instruction *, unsigned, 32> NumberedInsts;
3837
3938 /// \brief Keep track of last instruction inserted into \p NumberedInsts.
4039 /// It speeds up queries for uncached instructions by providing a start point
2323 #include "llvm/Analysis/OrderedBasicBlock.h"
2424 #include "llvm/IR/Dominators.h"
2525 #include "llvm/IR/Operator.h"
26 #include "llvm/IR/ValueHandle.h"
2726
2827 namespace llvm {
2928
3029 class OrderedInstructions {
3130 /// Used to check dominance for instructions in same basic block.
32 mutable DenseMap,
33 std::unique_ptr> OBBMap;
31 mutable DenseMap>
32 OBBMap;
3433
3534 /// The dominator tree of the parent function.
3635 DominatorTree *DT;