[llvm-commits] Speeding up instruction selection

Chris Lattner clattner at apple.com
Sun Mar 30 11:26:54 PDT 2008


On Mar 27, 2008, at 5:10 PM, Dan Gohman wrote:

> I tested the SDNodeUses.patch and it passed. I have one comment
> on this patch; I don't think this change:
>
> -  const SDOperand &getOperand(unsigned Num) const {
> +  const SDUse &getOperand(unsigned Num) const {
>
> and several other related changes (getChain, getBasePtr, etc.)
> are right. I think these should still return SDOperand references.
> This will help keep client code more consistent. Other than that
> I think this patch is ok to commit.

Incidentally, I think it would be even better to return SDOperand by  
value.  This is a small value class, so I think it will be a win.   
What do you think?

-Chris



More information about the llvm-commits mailing list