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

chenglin.bi via All-commits all-commits at lists.llvm.org
Tue Jan 10 13:03:36 PST 2023


  Branch: refs/heads/release/15.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 67fd0d2af4bf9e939ebcccb2b66552a31789af94
      https://github.com/llvm/llvm-project/commit/67fd0d2af4bf9e939ebcccb2b66552a31789af94
  Author: chenglin.bi <chenglin.bi at linaro.org>
  Date:   2023-01-10 (Tue, 10 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

(cherry picked from commit a0b470c9848c638e86f97eca53063642e07cea67)




More information about the All-commits mailing list