[all-commits] [llvm/llvm-project] 914836: [SCEV] Infer nsw/nuw from nw for addrecs

Philip Reames via All-commits all-commits at lists.llvm.org
Tue Aug 24 08:53:34 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 914836b1c8b36d4a317ef6c233746f6ec37b57a5
      https://github.com/llvm/llvm-project/commit/914836b1c8b36d4a317ef6c233746f6ec37b57a5
  Author: Philip Reames <listmail at philipreames.com>
  Date:   2021-08-24 (Tue, 24 Aug 2021)

  Changed paths:
    M llvm/lib/Analysis/ScalarEvolution.cpp
    M llvm/test/Analysis/ScalarEvolution/ptrtoint.ll

  Log Message:
  -----------
  [SCEV] Infer nsw/nuw from nw for addrecs

If we no an addrec doesn't self-wrap, the increment is strictly positive, and the start value is the smallest representable value, then we know that the corresponding wrap type can not occur.

Differential Revision: https://reviews.llvm.org/D108601




More information about the All-commits mailing list