[PATCH] D28393: [SCEV] Make howFarToZero produce a smaller max backedge-taken count

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 5 19:33:59 PST 2017


efriedma created this revision.
efriedma added reviewers: sanjoy, silviu.baranga.
efriedma added a subscriber: llvm-commits.
efriedma set the repository for this revision to rL LLVM.
Herald added a subscriber: mzolotukhin.

Use the obvious formula for the maximum backedge-taken count.  Use isLoopEntryGuardedByCond to cover some more common cases.


Repository:
  rL LLVM

https://reviews.llvm.org/D28393

Files:
  lib/Analysis/ScalarEvolution.cpp
  test/Analysis/ScalarEvolution/max-trip-count.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28393.83340.patch
Type: text/x-patch
Size: 3608 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170106/4c6f158d/attachment.bin>


More information about the llvm-commits mailing list