Add a method to clear optional optimization information from a Value.

llvm-svn: 76215
This commit is contained in:
Dan Gohman 2009-07-17 18:56:23 +00:00
parent 08c08870f9
commit 2035302038
1 changed files with 6 additions and 0 deletions

View File

@ -146,6 +146,12 @@ public:
// Only use when in type resolution situations!
void uncheckedReplaceAllUsesWith(Value *V);
/// clearOptionalData - Clear any optional optimization data from this Value.
/// Transformation passes must call this method whenever changing the IR
/// in a way that would affect the values produced by this Value, unless
/// it takes special care to ensure correctness in some other way.
void clearOptionalData() { SubclassOptionalData = 0; }
//----------------------------------------------------------------------
// Methods for handling the chain of uses of this Value.
//