[all-commits] [llvm/llvm-project] 8be24d: [MergeICmps] Don't merge icmps derived from pointe...

Valentin Churavy via All-commits all-commits at lists.llvm.org
Tue Nov 9 20:59:17 PST 2021


  Branch: refs/heads/release/13.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 8be24d19fefadb6c1c4d5b9c31a1ab4b51ce1435
      https://github.com/llvm/llvm-project/commit/8be24d19fefadb6c1c4d5b9c31a1ab4b51ce1435
  Author: Valentin Churavy <v.churavy at gmail.com>
  Date:   2021-11-09 (Tue, 09 Nov 2021)

  Changed paths:
    M llvm/lib/Transforms/Scalar/MergeICmps.cpp
    A llvm/test/Transforms/MergeICmps/X86/addressspaces.ll

  Log Message:
  -----------
  [MergeICmps] Don't merge icmps derived from pointers with addressspaces

IIUC we can't emit `memcmp` between pointers in addressspaces,
doing so will trigger an assertion since the signature of the memcmp
will not match it's arguments (https://bugs.llvm.org/show_bug.cgi?id=48661).

This PR disables the attempt to merge icmps,
when the pointer is in an addressspace.

Reviewed By: #julialang, vtjnash

Differential Revision: https://reviews.llvm.org/D94813

(cherry picked from commit 4cacb5cad052b14d37703157f3b7ffc6a6610acc)




More information about the All-commits mailing list