aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/VirtualFileSystem.cpp
diff options
context:
space:
mode:
authorCassie Jones <code@witchoflight.com>2021-01-22 13:36:58 -0800
committerAmara Emerson <amara@apple.com>2021-01-22 14:08:46 -0800
commit2bb92bf451d7eb2c817f3e5403353e7c0c14d350 (patch)
treea6e95adc341318d69761b920403a1c96c9ff8084 /llvm/lib/Support/VirtualFileSystem.cpp
parent607e5a5000bddec24061b54a7e7955d51fe0d049 (diff)
downloadllvm-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/lib/Support/VirtualFileSystem.cpp')
0 files changed, 0 insertions, 0 deletions