Add a bunch of calls to RemoveDeadNode in LegalizeDAG, so legalization doesn't get...
[oota-llvm.git] / lib / CodeGen / PrologEpilogInserter.h
index 1dccfd3c43f97d6c4a95f4a8a0bcfad24858ad9a..e2391591ad068c4036f11caf1606b89e47015fa9 100644 (file)
@@ -36,7 +36,9 @@ namespace llvm {
   class PEI : public MachineFunctionPass {
   public:
     static char ID;
-    PEI() : MachineFunctionPass(&ID) {}
+    PEI() : MachineFunctionPass(ID) {
+      initializePEIPass(*PassRegistry::getPassRegistry());
+    }
 
     const char *getPassName() const {
       return "Prolog/Epilog Insertion & Frame Finalization";
@@ -94,11 +96,10 @@ namespace llvm {
     // functions.
     bool ShrinkWrapThisFunction;
 
-    // When using the scavenger post-pass to resolve frame reference
-    // materialization registers, maintain a map of the registers to
-    // the constant value and SP adjustment associated with it.
-    typedef std::pair<int, int> FrameConstantEntry;
-    DenseMap<unsigned, FrameConstantEntry> FrameConstantRegMap;
+    // Flag to control whether to use the register scavenger to resolve
+    // frame index materialization registers. Set according to
+    // TRI->requiresFrameIndexScavenging() for the curren function.
+    bool FrameIndexVirtualScavenging;
 
 #ifndef NDEBUG
     // Machine function handle.