diff options
author | Cassie Jones <code@witchoflight.com> | 2021-01-22 13:36:58 -0800 |
---|---|---|
committer | Amara Emerson <amara@apple.com> | 2021-01-22 14:08:46 -0800 |
commit | 2bb92bf451d7eb2c817f3e5403353e7c0c14d350 (patch) | |
tree | a6e95adc341318d69761b920403a1c96c9ff8084 /llvm/unittests/Support/VirtualFileSystemTest.cpp | |
parent | 607e5a5000bddec24061b54a7e7955d51fe0d049 (diff) | |
download | llvm-2bb92bf451d7eb2c817f3e5403353e7c0c14d350.zip llvm-2bb92bf451d7eb2c817f3e5403353e7c0c14d350.tar.gz llvm-2bb92bf451d7eb2c817f3e5403353e7c0c14d350.tar.bz2 |
[GlobalISel] LegalizerHelper - Extract widenScalarAddoSubo method
The widenScalar implementation for signed and unsigned overflowing
operations were very similar: both are checked by truncating the result
and then re-sign/zero-extending it and checking that it matches the
computed operation.
Using a truncate + zero-extend for the unsigned case instead of manually
producing the AND instruction like before leads to an extra copy
instruction during legalization, but this should be harmless.
Differential Revision: https://reviews.llvm.org/D95035
Diffstat (limited to 'llvm/unittests/Support/VirtualFileSystemTest.cpp')
0 files changed, 0 insertions, 0 deletions