Don't populate TryAgainList when coalescing only physical registers with virtual...
[oota-llvm.git] / include / llvm / Instructions.h
index 8f3b24a1e6f6cc7511eb426ccb710aaebc852e1a..2387739720ce08db682fd1939fa1fe2ecb727e84 100644 (file)
@@ -408,6 +408,11 @@ public:
   inline bool hasIndices() const {
     return getNumOperands() > 1;
   }
+  
+  /// hasAllZeroIndices - Return true if all of the indices of this GEP are
+  /// zeros.  If so, the result pointer and the first operand have the same
+  /// value, just potentially different types.
+  bool hasAllZeroIndices() const;
 
   // Methods for support type inquiry through isa, cast, and dyn_cast:
   static inline bool classof(const GetElementPtrInst *) { return true; }