[llvm-commits] [llvm] r90353 - in /llvm/trunk: include/llvm/CodeGen/MachineSSAUpdater.h lib/CodeGen/MachineSSAUpdater.cpp

Chris Lattner clattner at apple.com
Wed Dec 2 16:06:54 PST 2009


On Dec 2, 2009, at 2:02 PM, Evan Cheng wrote:

> +  /// RewriteUse - Rewrite a use of the symbolic value.  This  
> handles PHI nodes,
> +  /// which use their value in the corresponding predecessor.  Note  
> that this
> +  /// will not work if the use is supposed to be rewritten to a  
> value defined in
> +  /// the same block as the use, but above it.  Any  
> 'AddAvailableValue's added
> +  /// for the use's block will be considered to be below it.
> +  void RewriteUse(unsigned &U);
> +

This should probably take a MachineOperand, because it will need to  
getReg() / setReg() it.

-Chris



More information about the llvm-commits mailing list