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

Yingwei Zheng via All-commits all-commits at lists.llvm.org
Sat Feb 1 04:41:37 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9725595f3acc0c1aaa354e15ac4ee2b1f8ff4cc9
      https://github.com/llvm/llvm-project/commit/9725595f3acc0c1aaa354e15ac4ee2b1f8ff4cc9
  Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
  Date:   2025-02-01 (Sat, 01 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



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