[llvm-commits] [llvm] r44981 - in /llvm/trunk: lib/Transforms/Scalar/CodeGenPrepare.cpp test/CodeGen/X86/opt-ext-uses.ll

Evan Cheng evan.cheng at apple.com
Wed Dec 12 23:50:42 PST 2007


Fixed. Thx.

Evan
On Dec 12, 2007, at 8:26 PM, Nick Lewycky wrote:

> Evan Cheng wrote:
>> @@ -929,6 +929,10 @@
>>    if (Src->hasOneUse())
>>      return false;
>>
>> +  // Only do this xform is truncating is free.
>
> Should read ...xform if* truncating...
>
>> +  if (!TLI->isTruncateFree(I->getType(), Src->getType()))
>> +    return false;
>> +
>>    // Only safe to perform the optimization if the source is also  
>> defined in
>>    // this block.
>>    if (!isa<Instruction>(Src) || DefBB != cast<Instruction>(Src)- 
>> >getParent())
>
> _______________________________________________
> 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