[llvm-dev] reg getInductionVariable

Doerfert, Johannes via llvm-dev llvm-dev at lists.llvm.org
Sat Dec 14 10:18:59 PST 2019


On 12/14, Dangeti Tharun kumar via llvm-dev wrote:
> The function getInductionVariable mandates the loop to be in "SimplifyForm".
> 
> Is it necessary for the loop to have *DedicatedExists *to find the
> induction variable?
> Can this condition be relaxed?

Potentially, but it is often simpler to force simplified form. If need
dedicated exists, split the exiting edges of a loop. That will create
dedicated exist blocks.


Cheers,
  Johannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20191214/d574f843/attachment.sig>


More information about the llvm-dev mailing list