On Jan 20, 2011, at 6:19 AM, Jonas Paulsson wrote:
> Hi,
>
> I am trying to rewrite loop addressing to suit my target. I wonder if there
is a simple way to find out if the current SelectionDAG is a loop-body?
>
> I tried to rewrite LLVM code to do address arithmetic, ie %nextaddr = add
i16* %curraddr, 4, but I could not find a way to make this work.
Hi Jonas,
I'm not sure exactly what you're doing here, but it sounds like what the
LoopStrengthReduction pass does. To get it to work for your target you need to
implement the TargetLoweringInfo hooks that it uses.
-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20110120/b9b5e9fc/attachment.html>