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
Paths
| Differential D119524
[InferAddressSpaces] Fix assert on invalid cast ordering ClosedPublic Authored by kerbowa on Feb 10 2022, 11:28 PM.
Details Summary If a cast is needed when replacing uses with newly created values, the Fixes: SWDEV-321215
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Feb 11 2022, 7:10 AM Closed by commit rG0bb25b46034a: [InferAddressSpaces] Fix assert on invalid cast ordering (authored by kerbowa). · Explain WhyFeb 11 2022, 10:03 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 407932 llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp
llvm/test/Transforms/InferAddressSpaces/AMDGPU/insert-pos-assert.ll
|