[llvm-commits] [llvm] r98548 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Chris Lattner clattner at apple.com
Mon Mar 15 11:41:15 PDT 2010


On Mar 15, 2010, at 11:34 AM, Dan Gohman wrote:

> 
> On Mar 15, 2010, at 9:15 AM, Chris Lattner wrote:
> 
>> Author: lattner
>> Date: Mon Mar 15 11:15:56 2010
>> New Revision: 98548
>> 
>> URL: http://llvm.org/viewvc/llvm-project?rev=98548&view=rev
>> Log:
>> SIGN_EXTEND from the same type as the dest is valid.
> 
> It is? This is inconsistent with LLVM IR. What code is creating
> identity SIGN_EXTENDs, and why is it inconvenient for it to use
> BIT_CONVERT instead?

getNode(ISD::SIGN_EXTEND) is currently allowed to be called with src/dst of the same type, it transparently returns the input.  No SIGN_EXTEND nodes are ever created with source = dest.

-Chris



More information about the llvm-commits mailing list