[all-commits] [llvm/llvm-project] 8e8664: [AArch64][GlobalISel] Use emitTestBit in selection...

Jessica Paquette via All-commits all-commits at lists.llvm.org
Thu Oct 1 15:33:54 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8e8664e55e8986e061283cb20c30f21fb2d2b641
      https://github.com/llvm/llvm-project/commit/8e8664e55e8986e061283cb20c30f21fb2d2b641
  Author: Jessica Paquette <jpaquette at apple.com>
  Date:   2020-10-01 (Thu, 01 Oct 2020)

  Changed paths:
    M llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
    A llvm/test/CodeGen/AArch64/GlobalISel/select-brcond-of-binop.mir
    R llvm/test/CodeGen/AArch64/GlobalISel/select-brcond-of-not.mir
    M llvm/test/CodeGen/AArch64/GlobalISel/select.mir
    M llvm/test/CodeGen/AArch64/GlobalISel/widen-narrow-tbz-tbnz.mir

  Log Message:
  -----------
  [AArch64][GlobalISel] Use emitTestBit in selection for G_BRCOND

Partially refactoring, partially fixing a bug.

- We shouldn't use TB(N)ZX unless the bit number is >= 32
- We can fold more than xor using emitTestBit

Also remove a check which isn't relevant anymore + update tests.

Rename select-brcond-of-not.mir to select-brcond-of-binop.mir, since it now
tests more than just G_XOR.

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




More information about the All-commits mailing list