[llvm-commits] [llvm] r76300 - in /llvm/trunk: lib/Transforms/Scalar/InstructionCombining.cpp test/Transforms/InstCombine/vec-single-elt.ll

Dan Gohman gohman at apple.com
Sat Jul 18 07:49:45 PDT 2009


On Jul 18, 2009, at 2:07 AM, Eli Friedman wrote:

> Author: efriedma
> Date: Sat Jul 18 04:07:47 2009
> New Revision: 76300
>
> URL: http://llvm.org/viewvc/llvm-project?rev=76300&view=rev
> Log:
> Canonicalize insert/extractelement from single-element vectors into
> bitcasts.
>
> It would also be possible to canonicalize the other way; does anyone
> have a preference?

I prefer extractelemet and insertelement.   Bitcasts between scalar and
vector are typically unfriendly.

Dan




More information about the llvm-commits mailing list