[all-commits] [llvm/llvm-project] 7f09aa: [SCEV] Transfer gep nusw and nuw flags

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Jun 20 05:45:28 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7f09aa9e3670778217a3d61702a4cf3343e6449d
      https://github.com/llvm/llvm-project/commit/7f09aa9e3670778217a3d61702a4cf3343e6449d
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-06-20 (Thu, 20 Jun 2024)

  Changed paths:
    M llvm/lib/Analysis/ScalarEvolution.cpp
    M llvm/test/Analysis/ScalarEvolution/flags-from-poison.ll

  Log Message:
  -----------
  [SCEV] Transfer gep nusw and nuw flags

nusw implies nsw offset and nuw base+offset arithmetic if offset
is non-negative. nuw implies nuw offset and base+offset arithmetic.
As usual, we can only transfer is poison implies UB.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list