[all-commits] [llvm/llvm-project] 257d33: [SCEV] Factor out part of wrap flag detection logi...

Philip Reames via All-commits all-commits at lists.llvm.org
Mon Nov 16 12:07:43 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 257d33c815d4a204b5a9de1ab2b1ed21c94c2ae6
      https://github.com/llvm/llvm-project/commit/257d33c815d4a204b5a9de1ab2b1ed21c94c2ae6
  Author: Philip Reames <listmail at philipreames.com>
  Date:   2020-11-16 (Mon, 16 Nov 2020)

  Changed paths:
    M llvm/include/llvm/Analysis/ScalarEvolution.h
    M llvm/lib/Analysis/ScalarEvolution.cpp

  Log Message:
  -----------
  [SCEV] Factor out part of wrap flag detection logic [NFC](try 2)

This is a cut down version of 1ec6e1 which was reverted due to a compile time issue.  The key changes made from that patch: 1) only infer the flags needed along each path, 2) be careful to preserve order of checks, and 3) avoid computing NW flags at all since we need to prove the stronger property (does not cross 0) in the caller anyways.

Assuming this doesn't trip regressions, I'm going to try weakening (1).  My end objective is to move flag inference into addrec construction.  If I can't weaken (1) without compile time impact, I'll have a problem.




More information about the All-commits mailing list