diff options
author | Jessica Paquette <jpaquette@apple.com> | 2020-02-06 09:56:09 -0800 |
---|---|---|
committer | Jessica Paquette <jpaquette@apple.com> | 2020-02-06 12:04:03 -0800 |
commit | d78cefb1601070cb028b61bbc1bd6f25a9c1837c (patch) | |
tree | 87adbb3a5fbcc756a1157cf409f9f8aed9e50a49 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 03a2d0045d2c11f4601bb2cbf5cdd5389ed2d72a (diff) | |
download | llvm-d78cefb1601070cb028b61bbc1bd6f25a9c1837c.zip llvm-d78cefb1601070cb028b61bbc1bd6f25a9c1837c.tar.gz llvm-d78cefb1601070cb028b61bbc1bd6f25a9c1837c.tar.bz2 |
[AArch64][GlobalISel] Emit TBZ for SGT cond branches against -1
When we have a G_BRCOND fed by a sgt compare against -1, we can just emit a TBZ.
This is similar to the code in `AArch64TargetLowering::LowerBR_CC`.
Also while we're here, properly scope the commutative constant check in
`selectCompareBranch`, since it sometimes would call
`getConstantVRegValWithLookThrough` twice.
Differential Revision: https://reviews.llvm.org/D74149
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions