[all-commits] [llvm/llvm-project] bd08f1: [MC] Remove dead code, NFC

Phoebe Wang via All-commits all-commits at lists.llvm.org
Mon May 1 22:43:44 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bd08f1bfb51206f71223e627be47dd88039fc021
      https://github.com/llvm/llvm-project/commit/bd08f1bfb51206f71223e627be47dd88039fc021
  Author: Phoebe Wang <phoebe.wang at intel.com>
  Date:   2023-05-02 (Tue, 02 May 2023)

  Changed paths:
    M llvm/lib/MC/MCCodeView.cpp

  Log Message:
  -----------
  [MC] Remove dead code, NFC

This code was added in 408b5e660300f9, but neither the return value nor
`Res` was used in the following code.

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


  Commit: c2dd36cd398ae7e1685476adcb0653caaa028d27
      https://github.com/llvm/llvm-project/commit/c2dd36cd398ae7e1685476adcb0653caaa028d27
  Author: Phoebe Wang <phoebe.wang at intel.com>
  Date:   2023-05-02 (Tue, 02 May 2023)

  Changed paths:
    M llvm/lib/CodeGen/EarlyIfConversion.cpp

  Log Message:
  -----------
  [Coverity] Fix unchecked return value, NFC

The `ReversePredicate` should have made sure the reverse predicate is
supported by target, but the check comes from early function and might
be invalid by any mistake. So it's better to double confirm it here.

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


Compare: https://github.com/llvm/llvm-project/compare/74c1fa60b5f5...c2dd36cd398a


More information about the All-commits mailing list