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

Evan Cheng evan.cheng at apple.com
Tue Mar 11 20:43:11 PDT 2008


This is to unbreak stuff. I'll fix it properly later.

Evan

On Mar 11, 2008, at 7:38 PM, Chris Lattner wrote:

>
> On Mar 11, 2008, at 7:05 PM, Evan Cheng wrote:
>
>> Author: evancheng
>> Date: Tue Mar 11 21:05:05 2008
>> New Revision: 48274
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=48274&view=rev
>> Log:
>> Total brain cramp.
>
> You're checking for buildvector of zero again.  Is this right?
>
> -Chris
>
>>
>>
>> Modified:
>>   llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
>>
>> Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
>> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=48274&r1=48273&r2=48274&view=diff
>>
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =
>> =====================================================================
>> --- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
>> +++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Tue Mar 11
>> 21:05:05 2008
>> @@ -1103,7 +1103,7 @@
>>
>>  // fold (sub x, x) -> 0
>>  if (N0 == N1) {
>> -    if (!AfterLegalize || !MVT::isVector(VT))
>> +    if (AfterLegalize && ISD::isBuildVectorAllZeros(N0.Val))
>>      // For example, zero vectors might be normalized to a
>> particular vector
>>      // type to ensure they are CSE'd. Avoid issuing zero vector
>> nodes of
>>      // *unexpected* type after legalization.
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list