[all-commits] [llvm/llvm-project] 281d29: [TypePromotion] Avoid some unnecessary truncs

Sam Parker via All-commits all-commits at lists.llvm.org
Wed Feb 2 02:06:14 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 281d29b8fed369c6ebe33ed85c518fc1ed81f44a
      https://github.com/llvm/llvm-project/commit/281d29b8fed369c6ebe33ed85c518fc1ed81f44a
  Author: Sam Parker <sam.parker at arm.com>
  Date:   2022-02-02 (Wed, 02 Feb 2022)

  Changed paths:
    M llvm/lib/CodeGen/TypePromotion.cpp
    A llvm/test/Transforms/TypePromotion/AArch64/lit.local.cfg
    A llvm/test/Transforms/TypePromotion/AArch64/phi-zext-gep.ll

  Log Message:
  -----------
  [TypePromotion] Avoid some unnecessary truncs

Check for legal zext 'sinks' before inserting a trunc.

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




More information about the All-commits mailing list