[LLVMdev] Simple NEON optimization

Renato Golin renato.golin at arm.com
Fri Nov 12 10:42:49 PST 2010


On 12 November 2010 17:52, Bob Wilson <bob.wilson at apple.com> wrote:
> I recommend implementing this as a target-specific DAG combine optimization.  We already have target-specific DAG nodes for the relevant NEON comparison operations (ARMISD::VCEQ, etc. -- see ARMISelLowering.h) as well as the vmov (ARMISD::VMOVIMM).  You just need to teach the DAG combiner how to fold them together.  Here's what you need to do (all of this code is in ARMISelLowering.cpp):

Hi Bob,

I thought so... I'll get cracked and see if I can generate some simple tests.

Thank you very much for the detailed explanation!

cheers,
--renato




More information about the llvm-dev mailing list