[llvm-commits] [LLVM] PATCH: simplifyLoopLatch before rotateLoop

Andrew Trick atrick at apple.com
Sat Jan 21 01:21:02 PST 2012


I'd like to preclean loop tails just before loop rotate runs. This takes care of loops with a postincrement following the loop condition. It's not the common case for C, but it is baffling when these simple loops aren't optimized and "typical" ones are. This patch is pretty straightforward. I think it's easier just to implement this simplification rather than continue to give excuses for why it's not handled.

Fixes PR2624 and other nagging cases.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: simplifyLatch.diff
Type: application/octet-stream
Size: 5923 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120121/b50bd1ec/attachment.obj>
-------------- next part --------------


-Andy


More information about the llvm-commits mailing list