1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +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:
Xin Tong 2017-06-28 22:35:54 +00:00
parent b0e062b44a
commit 93e5ab4f1c
2 changed files with 3 additions and 5 deletions

View File

@ -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

View File

@ -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;