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@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to