[all-commits] [llvm/llvm-project] 4189e5: [CGP] Support opaque pointers in address mode fold

Nikita Popov via All-commits all-commits at lists.llvm.org
Sun Sep 12 08:43:55 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4189e5fe12b6f9b9036d8faffeab15ad6acd7d99
      https://github.com/llvm/llvm-project/commit/4189e5fe12b6f9b9036d8faffeab15ad6acd7d99
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-09-12 (Sun, 12 Sep 2021)

  Changed paths:
    M llvm/lib/CodeGen/CodeGenPrepare.cpp
    M llvm/test/CodeGen/X86/merge_store.ll

  Log Message:
  -----------
  [CGP] Support opaque pointers in address mode fold

Rather than inspecting the pointer element type, use the access
type of the load/store/atomicrmw/cmpxchg.

In the process of doing this, simplify the logic by storing the
address + type in MemoryUses, rather than an Instruction + Operand
pair (which was then used to fetch the address).




More information about the All-commits mailing list