[all-commits] [llvm/llvm-project] 7eee85: [AArch64][GlobalISel] Fold selects fed by G_PTR_ADD

Jessica Paquette via All-commits all-commits at lists.llvm.org
Wed Feb 10 00:11:36 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7eee8585859c8fa5826483fb7ff30a077fc1a57f
      https://github.com/llvm/llvm-project/commit/7eee8585859c8fa5826483fb7ff30a077fc1a57f
  Author: Jessica Paquette <jpaquette at apple.com>
  Date:   2021-02-10 (Wed, 10 Feb 2021)

  Changed paths:
    M llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
    M llvm/test/CodeGen/AArch64/GlobalISel/select-select.mir

  Log Message:
  -----------
  [AArch64][GlobalISel] Fold selects fed by G_PTR_ADD

Similar to the case for G_ADD.

There was a function in CTMark/pairlocalalign which was missing this case,
causing GlobalISel to emit a add + csel when a csinc is all that is necessary.

https://godbolt.org/z/ax69E9

Minor code size improvements on CTMark at -Os.

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




More information about the All-commits mailing list