[all-commits] [llvm/llvm-project] 95354f: [InstCombine] Check nowrap flags when folding comp...

Yingwei Zheng via All-commits all-commits at lists.llvm.org
Tue Feb 11 15:18:33 PST 2025


  Branch: refs/heads/release/20.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 95354f3ea45a831783b86d8459e90ce8f69216f5
      https://github.com/llvm/llvm-project/commit/95354f3ea45a831783b86d8459e90ce8f69216f5
  Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
  Date:   2025-02-11 (Tue, 11 Feb 2025)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
    M llvm/test/Transforms/InstCombine/opaque-ptr.ll

  Log Message:
  -----------
  [InstCombine] Check nowrap flags when folding comparison of GEPs with the same base pointer (#121892)

Alive2: https://alive2.llvm.org/ce/z/P5XbMx
Closes https://github.com/llvm/llvm-project/issues/121890

TODO: It is still safe to perform this transform without nowrap flags if
the corresponding scale factor is 1 byte:
https://alive2.llvm.org/ce/z/J-JCJd

(cherry picked from commit 9725595f3acc0c1aaa354e15ac4ee2b1f8ff4cc9)



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