mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
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 llvm-svn: 306608
This commit is contained in:
parent
b0e062b44a
commit
93e5ab4f1c
@ -25,7 +25,6 @@
|
||||
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
#include "llvm/IR/BasicBlock.h"
|
||||
#include "llvm/IR/ValueHandle.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
@ -35,7 +34,7 @@ class BasicBlock;
|
||||
class OrderedBasicBlock {
|
||||
private:
|
||||
/// \brief Map a instruction to its position in a BasicBlock.
|
||||
SmallDenseMap<AssertingVH<const Instruction>, unsigned, 32> NumberedInsts;
|
||||
SmallDenseMap<const Instruction *, unsigned, 32> NumberedInsts;
|
||||
|
||||
/// \brief Keep track of last instruction inserted into \p NumberedInsts.
|
||||
/// It speeds up queries for uncached instructions by providing a start point
|
||||
|
@ -24,14 +24,13 @@
|
||||
#include "llvm/Analysis/OrderedBasicBlock.h"
|
||||
#include "llvm/IR/Dominators.h"
|
||||
#include "llvm/IR/Operator.h"
|
||||
#include "llvm/IR/ValueHandle.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
class OrderedInstructions {
|
||||
/// Used to check dominance for instructions in same basic block.
|
||||
mutable DenseMap<AssertingVH<const BasicBlock>,
|
||||
std::unique_ptr<OrderedBasicBlock>> OBBMap;
|
||||
mutable DenseMap<const BasicBlock *, std::unique_ptr<OrderedBasicBlock>>
|
||||
OBBMap;
|
||||
|
||||
/// The dominator tree of the parent function.
|
||||
DominatorTree *DT;
|
||||
|
Loading…
x
Reference in New Issue
Block a user