[all-commits] [llvm/llvm-project] 1ad84d: [Mips] Optimize `or (and $src1, mask), (shl $src2, ...

yingopq via All-commits all-commits at lists.llvm.org
Thu Sep 12 09:06:16 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1ad84d7961ec3ddab9233370066110ecaa5eb329
      https://github.com/llvm/llvm-project/commit/1ad84d7961ec3ddab9233370066110ecaa5eb329
  Author: yingopq <115543042+yingopq at users.noreply.github.com>
  Date:   2024-09-13 (Fri, 13 Sep 2024)

  Changed paths:
    M llvm/lib/Target/Mips/MipsISelLowering.cpp
    A llvm/test/CodeGen/Mips/ins.ll

  Log Message:
  -----------
  [Mips] Optimize `or (and $src1, mask), (shl $src2, shift)` to `ins` (#103017)

Optimize `$dst = or (and $src1, (2**size0 - 1)), (shl $src2, size0)` to
`ins $src1, $src2, pos, size`,
where `pos = size0, size = 32 - pos`.

Fix #90325



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list