[all-commits] [llvm/llvm-project] bf7a0f: Fix incorrect codegen with respect to GEPs #85333 ...

AdityaK via All-commits all-commits at lists.llvm.org
Tue May 14 06:13:34 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bf7a0f9958b93d9979e0adf93b80ad056615706d
      https://github.com/llvm/llvm-project/commit/bf7a0f9958b93d9979e0adf93b80ad056615706d
  Author: AdityaK <hiraditya at msn.com>
  Date:   2024-05-14 (Tue, 14 May 2024)

  Changed paths:
    M llvm/lib/Transforms/Scalar/GVNSink.cpp
    A llvm/test/Transforms/GVNSink/different-gep-types.ll

  Log Message:
  -----------
  Fix incorrect codegen with respect to GEPs #85333 (#92047)

As mentioned in #68882 and
https://discourse.llvm.org/t/rfc-replacing-getelementptr-with-ptradd/68699

Gep arithmetic isn't consistent with different types. GVNSink didn't
realize this and sank all geps as long as their operands can be wired
via PHIs
in a post-dominator.

Fixes: #85333
Reapply: #88440 after fixing the non-determinism issues in #90995



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