[all-commits] [llvm/llvm-project] 96d3be: [InferAddressSpaces] Check if AS are the same in i...

Wenju He via All-commits all-commits at lists.llvm.org
Wed Apr 27 20:11:14 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 96d3be84438e02c2d352ba1751aaa972f9dc3a89
      https://github.com/llvm/llvm-project/commit/96d3be84438e02c2d352ba1751aaa972f9dc3a89
  Author: Wenju He <wenju.he at intel.com>
  Date:   2022-04-28 (Thu, 28 Apr 2022)

  Changed paths:
    M llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp
    A llvm/test/Transforms/InferAddressSpaces/X86/noop-ptrint-pair.ll

  Log Message:
  -----------
  [InferAddressSpaces] Check if AS are the same in isNoopPtrIntCastPair

isNoopAddrSpaceCast is expecting SrcAS is different from DestAS.
If the two AS are the same, consider ptrtoint/inttoptr as noop cast.

Reviewed By: arsenm

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




More information about the All-commits mailing list