[all-commits] [llvm/llvm-project] 2e44b7: [VectorCombine] Insert addrspacecast when crossing...

Fraser Cormack via All-commits all-commits at lists.llvm.org
Thu Mar 24 12:19:43 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2e44b7872bc638ed884ae4aa86e38b3b47e0b65a
      https://github.com/llvm/llvm-project/commit/2e44b7872bc638ed884ae4aa86e38b3b47e0b65a
  Author: Fraser Cormack <fraser at codeplay.com>
  Date:   2022-03-24 (Thu, 24 Mar 2022)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VectorCombine.cpp
    M llvm/test/Transforms/VectorCombine/AMDGPU/as-transition-inseltpoison.ll
    M llvm/test/Transforms/VectorCombine/AMDGPU/as-transition.ll
    M llvm/test/Transforms/VectorCombine/X86/load-inseltpoison.ll

  Log Message:
  -----------
  [VectorCombine] Insert addrspacecast when crossing address space boundaries

We can not bitcast pointers across different address spaces. This was
previously fixed in D89577 but then in D93229 an enhancement was added
which peeks further through the ponter operand, opening up the
possibility that address-space violations could be introduced.

Instead of bailing as the previous fix did, simply insert an
addrspacecast cast instruction.

Reviewed By: lebedev.ri

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




More information about the All-commits mailing list