[all-commits] [llvm/llvm-project] e0fe97: [TypePromotion] Avoid unnecessary trunc zext pairs

Sam Parker via All-commits all-commits at lists.llvm.org
Tue May 24 07:35:39 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e0fe9785d35203d6b76670cb2b8c6449db4fa576
      https://github.com/llvm/llvm-project/commit/e0fe9785d35203d6b76670cb2b8c6449db4fa576
  Author: Sam Parker <sam.parker at arm.com>
  Date:   2022-05-24 (Tue, 24 May 2022)

  Changed paths:
    M llvm/lib/CodeGen/TypePromotion.cpp
    M llvm/test/Transforms/TypePromotion/ARM/casts.ll

  Log Message:
  -----------
  [TypePromotion] Avoid unnecessary trunc zext pairs

Any zext 'sink' should already have an operand that is in the legal
value, so avoid using a trunc and just use the trunc operand instead.

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




More information about the All-commits mailing list