On Feb 10, 2008, at 7:46 PM, Evan Cheng wrote:
> What is this fixing?
The code as it was was a no-op. This makes it do what the comment
says it's supposed to do.
> I would expect SelectionDAG to constant
> evaluating it to a constant node?
>
Perhaps. But then why is it here at all then?
-bw
What is this fixing? I would expect SelectionDAG to constant
evaluating it to a constant node?
Evan
On Feb 10, 2008, at 12:10 AM, Bill Wendling wrote:
> Author: void
> Date: Sun Feb 10 02:10:24 2008
> New Revision: 46922
>
> URL: http://llvm.org/viewvc/llvm-project?rev=46922&view=rev
> Log:
>
Author: void
Date: Sun Feb 10 02:10:24 2008
New Revision: 46922
URL: http://llvm.org/viewvc/llvm-project?rev=46922&view=rev
Log:
Return "(c1 + c2)" instead of yet another ADD node (which made this a
no-op).
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Modified: llvm/trunk/li