diff options
author | Jessica Paquette <jpaquette@apple.com> | 2020-01-28 11:35:44 -0800 |
---|---|---|
committer | Jessica Paquette <jpaquette@apple.com> | 2020-01-28 14:00:31 -0800 |
commit | dba29f7c3b36443c7287ba5a31d166f8edb73544 (patch) | |
tree | 52db456e8dff62f9d3db980d1c0f997446d72822 /llvm/tools/llvm-cov/SourceCoverageViewHTML.cpp | |
parent | 4e799ada5860d1029ea89226b9b867302e792251 (diff) | |
download | llvm-dba29f7c3b36443c7287ba5a31d166f8edb73544.zip llvm-dba29f7c3b36443c7287ba5a31d166f8edb73544.tar.gz llvm-dba29f7c3b36443c7287ba5a31d166f8edb73544.tar.bz2 |
[AArch64][GlobalISel] Fold G_AND into G_BRCOND
When the G_BRCOND is fed by a eq or ne G_ICMP, it may be possible to fold a
G_AND into the branch by producing a tbnz/tbz instead.
This happens when
1. We have a ne/eq G_ICMP feeding into the G_BRCOND
2. The G_ICMP is a comparison against 0
3. One of the operands of the G_AND is a power of 2 constant
This is very similar to the code in AArch64TargetLowering::LowerBR_CC.
Add opt-and-tbnz-tbz to test this.
Differential Revision: https://reviews.llvm.org/D73573
Diffstat (limited to 'llvm/tools/llvm-cov/SourceCoverageViewHTML.cpp')
0 files changed, 0 insertions, 0 deletions