[all-commits] [llvm/llvm-project] 0bb25b: [InferAddressSpaces] Fix assert on invalid cast or...

Austin Kerbow via All-commits all-commits at lists.llvm.org
Fri Feb 11 10:03:16 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0bb25b46034aa6790b8b746bd0b8780219534664
      https://github.com/llvm/llvm-project/commit/0bb25b46034aa6790b8b746bd0b8780219534664
  Author: Austin Kerbow <Austin.Kerbow at amd.com>
  Date:   2022-02-11 (Fri, 11 Feb 2022)

  Changed paths:
    M llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp
    A llvm/test/Transforms/InferAddressSpaces/AMDGPU/insert-pos-assert.ll

  Log Message:
  -----------
  [InferAddressSpaces] Fix assert on invalid cast ordering

If a cast is needed when replacing uses with newly created values, the
cast must be inserted after the instruction that defines the new value.

Fixes: SWDEV-321215

Reviewed By: arsenm

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




More information about the All-commits mailing list