[LLVMdev] Removing metadata in a pass

Mark Heffernan meheff at google.com
Fri Jul 18 09:41:56 PDT 2014


On Fri, Jul 18, 2014 at 2:30 AM, Tim Northover <t.p.northover at gmail.com>
wrote:

> What about dividing the unroll hint by the unroll count and dropping
> it if that's <= 1?
>

That would usually get to an unroll factor closer to what the user
requested, though most of the time they wouldn't be divisible so you'd
rarely end up with the exact factor in the end.  I'm a little on the fence
about the compiler doing any unrolling if the pragma target can't be met.
 Maybe it should just emit a warning and give up.  Currently it unrolls as
much as possible if the target can't be met (it will emit a warning in this
case once I finish a patch I'm working on).  Though I can see bike-shedding
arguments for either case.

Mark


> Cheers.
>
> Tim.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140718/1fe0f4e9/attachment.html>


More information about the llvm-dev mailing list