[AArch64][GlobalISel] Don't bail out of the select(cmp(a, b)) -> csel optimization...
authorAmara Emerson <aemerson@apple.com>
Mon, 27 Jan 2020 23:57:16 +0000 (15:57 -0800)
committerAmara Emerson <aemerson@apple.com>
Tue, 28 Jan 2020 18:09:03 +0000 (10:09 -0800)
commit14c2cf8e187451b51e997c40476b65d5ef9d346e
treecf3eb5f595ba25f6c65b2d651875b72bd4ae94bc
parent554791928088d6139e0fb3480d79cd76ea59198f
[AArch64][GlobalISel] Don't bail out of the select(cmp(a, b)) -> csel optimization with multiple users.

It can still be beneficial to do the optimization if the result of the compare
is used by *another* select.

Differential Revision: https://reviews.llvm.org/D73511
llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp
llvm/test/CodeGen/AArch64/GlobalISel/fold-fp-select.mir