[all-commits] [llvm/llvm-project] a0b470: [TypePromotion] Add truncate in ConvertTruncs when...

chenglin.bi via All-commits all-commits at lists.llvm.org
Tue Jan 3 02:13:33 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a0b470c9848c638e86f97eca53063642e07cea67
      https://github.com/llvm/llvm-project/commit/a0b470c9848c638e86f97eca53063642e07cea67
  Author: chenglin.bi <chenglin.bi at linaro.org>
  Date:   2023-01-03 (Tue, 03 Jan 2023)

  Changed paths:
    M llvm/lib/CodeGen/TypePromotion.cpp
    R llvm/test/Transforms/TypePromotion/AArch64/pr58843.ll
    M llvm/test/Transforms/TypePromotion/AArch64/trunc-zext-chain.ll

  Log Message:
  -----------
  [TypePromotion] Add truncate in ConvertTruncs when the original truncate type is not extend type

If the src type is not extend type, after convert the truncate to and we need to truncate the and also to make sure the all user is legal.

The old fix D137613 doesn't work when the truncate convert to and have the other users. So this time I try to add the truncate after and to avoid all these potential issues.

Fix: #59554

Reviewed By: samparker

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




More information about the All-commits mailing list