#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/DepthFirstIterator.h"
#include "llvm/ADT/GraphTraits.h"
+#include "llvm/ADT/MapVector.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/SmallBitVector.h"
#include "llvm/ADT/SmallPtrSet.h"
bool Value2VPValueEnabled = true;
/// Values used outside the plan.
- DenseMap<PHINode *, VPLiveOut *> LiveOuts;
+ MapVector<PHINode *, VPLiveOut *> LiveOuts;
public:
VPlan(VPBlockBase *Entry = nullptr) : Entry(Entry) {
LiveOuts.erase(PN);
}
- const DenseMap<PHINode *, VPLiveOut *> &getLiveOuts() const {
+ const MapVector<PHINode *, VPLiveOut *> &getLiveOuts() const {
return LiveOuts;
}