[AArch64][GlobalISel] Optimize away a Not feeding a brcond by using tbz instead of...
authorAmara Emerson <amara@apple.com>
Sun, 23 Aug 2020 06:28:07 +0000 (23:28 -0700)
committerAmara Emerson <amara@apple.com>
Tue, 1 Sep 2020 18:06:06 +0000 (11:06 -0700)
commit5ded4442520d3dbb1aa72e6fe03cddef8828c618
treecc6ddb30af6d3aaede81c929cd0fa5fc537cb71d
parentb11c52781635bd871abd6d932cfd5dcd6f311903
[AArch64][GlobalISel] Optimize away a Not feeding a brcond by using tbz instead of tbnz.

Usually brconds are fed by compares, but not always, in which case we would
miss this fold.

Differential Revision: https://reviews.llvm.org/D86413
llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
llvm/test/CodeGen/AArch64/GlobalISel/select-brcond-of-not.mir [new file with mode: 0644]