[all-commits] [llvm/llvm-project] 21308c: [AArch64][GlobalISel] Check if G_SELECT has been o...

Jessica Paquette via All-commits all-commits at lists.llvm.org
Tue Dec 8 13:53:17 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 21308c2b4c9dda8d44d2792f1359fc6b54984b87
      https://github.com/llvm/llvm-project/commit/21308c2b4c9dda8d44d2792f1359fc6b54984b87
  Author: Jessica Paquette <jpaquette at apple.com>
  Date:   2020-12-08 (Tue, 08 Dec 2020)

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

  Log Message:
  -----------
  [AArch64][GlobalISel] Check if G_SELECT has been optimized when folding binops

`TryFoldBinOpIntoSelect` didn't have a check for `Optimized`, meaning you could
end up folding twice. (e.g. a select with a G_ADD on the true side, and a G_SUB
on the false side)

Add in the missing `if` and a test.




More information about the All-commits mailing list