[PATCH][Peephole] Rewrite copies to avoid cross register banks copies.

Jakob Stoklund Olesen stoklund at 2pi.dk
Thu Sep 12 12:34:46 PDT 2013


On Sep 12, 2013, at 11:32 AM, Quentin Colombet <qcolombet at apple.com> wrote:

> Hi Jakob,
> 
> Could you have a look to this patch, please?
> 
> Thanks,
> Quentin
> <PeepholeCopy.svndiff>

Hi Quentin,

The patch looks good, but it seems to be doing the same thing as optimizeBitcastInstr(), only better. Could those two be merged, or can we just get rid of ‘bit cast’ instructions now?

It seems to me that targets should simply emit cross-class COPY instructions instead of marking some native copy instructions as ‘bit casts’.

What do you think?

/jakob





More information about the llvm-commits mailing list