[all-commits] [llvm/llvm-project] 14d8f1: [SCEV] Fold (0 udiv %x) to 0

Philip Reames via All-commits all-commits at lists.llvm.org
Wed Jun 30 08:33:03 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 14d8f1546a0483ef54a7a09442848d0a470c94c0
      https://github.com/llvm/llvm-project/commit/14d8f1546a0483ef54a7a09442848d0a470c94c0
  Author: Philip Reames <listmail at philipreames.com>
  Date:   2021-06-30 (Wed, 30 Jun 2021)

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

  Log Message:
  -----------
  [SCEV] Fold (0 udiv %x) to 0

We have analogous rules in instsimplify, etc.., but were missing the same in SCEV.  The fold is near trivial, but came up in the context of a larger change.




More information about the All-commits mailing list