[all-commits] [llvm/llvm-project] 3ed5ac: Fixups after review feedback:

Björn Pettersson via All-commits all-commits at lists.llvm.org
Thu Apr 10 06:01:18 PDT 2025


  Branch: refs/heads/users/bjope/addlikegep_2
  Home:   https://github.com/llvm/llvm-project
  Commit: 3ed5acf4ce65100bfa28ea50a7689b82ad3ce3ff
      https://github.com/llvm/llvm-project/commit/3ed5acf4ce65100bfa28ea50a7689b82ad3ce3ff
  Author: Bjorn Pettersson <bjorn.a.pettersson at ericsson.com>
  Date:   2025-04-10 (Thu, 10 Apr 2025)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp

  Log Message:
  -----------
  Fixups after review feedback:

- Make sure we try to derive inbound + nuw before doing the
  ADD+GEP->GEP+GEP rewrites. This to make it possible to rely
  on "nuw" being present when trying to preserve flags.

- Make sure the special ADDNSW+SEXTLIKE+GEP->GEP+GEP case is checking
  for ADDNUW+ZEXTNNEG+GEP->GEP+GEP when preserving flags.
  This way we do not need to check for non-negative operands.



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