diff options
author | Jessica Paquette <jpaquette@apple.com> | 2020-10-14 15:19:52 -0700 |
---|---|---|
committer | Jessica Paquette <jpaquette@apple.com> | 2020-10-15 16:04:08 -0700 |
commit | 609d765cd3b1a4f9558b654dbb1bc7c973f3408b (patch) | |
tree | dea2b02441569d742142364a7fcc60aea6df7592 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | c2551c1f4058d2c3cc4964b1d1d0ca5946036f6c (diff) | |
download | llvm-609d765cd3b1a4f9558b654dbb1bc7c973f3408b.zip llvm-609d765cd3b1a4f9558b654dbb1bc7c973f3408b.tar.gz llvm-609d765cd3b1a4f9558b654dbb1bc7c973f3408b.tar.bz2 |
[AArch64][GlobalISel] NFC: Refactor emitIntegerCompare
Simplify emitIntegerCompare and improve comments + asserts.
Mostly making the code a little easier to follow.
Also, this code is only used for G_ICMP. The legalizer ensures that the LHS/RHS
for every G_ICMP is either a s32 or s64. So, there's no need to handle anything
else. This lets us remove a bunch of checks for whether or not we successfully
emitted the compare.
Differential Revision: https://reviews.llvm.org/D89433
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions