[all-commits] [llvm/llvm-project] 463876: [TypePromotion] Refine fix sext/zext for promoted ...

Craig Topper via All-commits all-commits at lists.llvm.org
Sat May 21 14:08:40 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4638766794b0d9e9a9262e59e3a5cccde657b2ef
      https://github.com/llvm/llvm-project/commit/4638766794b0d9e9a9262e59e3a5cccde657b2ef
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-05-21 (Sat, 21 May 2022)

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

  Log Message:
  -----------
  [TypePromotion] Refine fix sext/zext for promoted constant from D125294.

Reviewing the code again, I believe the sext is needed on the LHS
or RHS for ICmp and only on the RHS for Add.

Add an opcode check before checking the operand number.

Fixes PR55627.

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




More information about the All-commits mailing list