The patchpoint lowering logic would crash with live constants equal to
[oota-llvm.git] / include / llvm / CodeGen / Passes.h
index 31fba89c7ace6d02f46a1aeddc45d4f7c70f4c9f..e45b3e0a1a348aa84396146507b5138eacc4130b 100644 (file)
@@ -178,6 +178,10 @@ public:
   /// Return true if the optimized regalloc pipeline is enabled.
   bool getOptimizeRegAlloc() const;
 
+  /// Return true if the default global register allocator is in use and
+  /// has not be overriden on the command line with '-regalloc=...'
+  bool usingDefaultRegAlloc() const;
+
   /// Add common target configurable passes that perform LLVM IR to IR
   /// transforms following machine independent optimization.
   virtual void addIRPasses();