[PATCH] D35584: [CGP] Folding into empty latch block is always profitable.
Balaram Makam via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 18 15:14:21 PDT 2017
bmakam created this revision.
If the destination block is an empty latch block then we can hoist
the jump through the backedge, so it is always profitable to merge.
During LSR, loopsimplify creates these empty blocks when it canonicalizes
the loop to have dedicated exit blocks.
https://reviews.llvm.org/D35584
Files:
lib/CodeGen/CodeGenPrepare.cpp
test/Transforms/CodeGenPrepare/merge-empty-latch-block.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35584.107187.patch
Type: text/x-patch
Size: 8638 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170718/e28b7a6e/attachment.bin>
More information about the llvm-commits
mailing list