[all-commits] [llvm/llvm-project] b569ec: [SCCP] Infer nuw for gep nusw with non-negative of...

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Dec 6 00:52:54 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b569ec6de6a0c57d6c4b675df7d7e3e28a9f4904
      https://github.com/llvm/llvm-project/commit/b569ec6de6a0c57d6c4b675df7d7e3e28a9f4904
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-12-06 (Fri, 06 Dec 2024)

  Changed paths:
    M clang/test/CodeGen/attr-counted-by.c
    M llvm/lib/Transforms/Utils/SCCPSolver.cpp
    M llvm/test/Analysis/LazyCallGraph/blockaddress.ll
    M llvm/test/Transforms/SCCP/conditions-iter-order.ll
    M llvm/test/Transforms/SCCP/gep-nuw.ll
    M llvm/test/Transforms/SCCP/ipsccp-ssa-copy-nested-conds.ll
    M llvm/test/Transforms/SCCP/pr45185-range-predinfo.ll
    M llvm/test/Transforms/SCCP/widening.ll

  Log Message:
  -----------
  [SCCP] Infer nuw for gep nusw with non-negative offsets (#118819)

If the GEP is nusw/inbounds and has all-non-negative offsets infer nuw
as well.

This doesn't have measurable compile-time impact.

Proof: https://alive2.llvm.org/ce/z/ihztLy



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