[all-commits] [llvm/llvm-project] 0cceea: [LoongArch][NFC] Add tests for (X & -256) == 256 -...

hev via All-commits all-commits at lists.llvm.org
Mon Jul 24 02:43:53 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0cceea90bf5998e587d6da114ce42c874bf41f6e
      https://github.com/llvm/llvm-project/commit/0cceea90bf5998e587d6da114ce42c874bf41f6e
  Author: WANG Rui <wangrui at loongson.cn>
  Date:   2023-07-24 (Mon, 24 Jul 2023)

  Changed paths:
    A llvm/test/CodeGen/LoongArch/legalicmpimm.ll

  Log Message:
  -----------
  [LoongArch][NFC] Add tests for (X & -256) == 256 -> (X >> 8) == 1

Add tests for (X & -256) == 256 -> (X >> 8) == 1.

Signed-off-by: WANG Rui <wangrui at loongson.cn>

Reviewed By: xen0n

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


  Commit: 899aaffcbc3a9424453f3d3b5fb2ea3f354e3a74
      https://github.com/llvm/llvm-project/commit/899aaffcbc3a9424453f3d3b5fb2ea3f354e3a74
  Author: WANG Rui <wangrui at loongson.cn>
  Date:   2023-07-24 (Mon, 24 Jul 2023)

  Changed paths:
    M llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
    M llvm/lib/Target/LoongArch/LoongArchISelLowering.h
    M llvm/test/CodeGen/LoongArch/legalicmpimm.ll

  Log Message:
  -----------
  [LoongArch] Implement isLegalICmpImmediate

This causes a trivial improvement in the legalicmpimm.ll test case.

Signed-off-by: WANG Rui <wangrui at loongson.cn>

Reviewed By: SixWeining, xen0n

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


Compare: https://github.com/llvm/llvm-project/compare/9fbabba9212e...899aaffcbc3a


More information about the All-commits mailing list