aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/CodeGen/MachineInstrTest.cpp
diff options
context:
space:
mode:
authorRamkumar Ramachandra <ramkumar.ramachandra@codasip.com>2024-06-29 12:16:47 +0100
committerGitHub <noreply@github.com>2024-06-29 12:16:47 +0100
commit56277948d577245be845c89a7d7c3a5ccd9747ef (patch)
tree3c5d8c9cb0f4cf07fa2b4f8e12d6f0e8f7066f7b /llvm/unittests/CodeGen/MachineInstrTest.cpp
parent5cc1287bdbb2de9ad91e4ba8dc9eeb9508c734a5 (diff)
downloadllvm-56277948d577245be845c89a7d7c3a5ccd9747ef.zip
llvm-56277948d577245be845c89a7d7c3a5ccd9747ef.tar.gz
llvm-56277948d577245be845c89a7d7c3a5ccd9747ef.tar.bz2
MathExtras: avoid unnecessarily widening types (#95426)
Several multi-argument functions unnecessarily widen types beyond the argument types. Template'ize the functions, and use std::common_type_t to avoid this, hence optimizing the functions. A requirement of this patch is to change the overflow behavior of alignTo to only overflow when the result isn't representable in the return type.
Diffstat (limited to 'llvm/unittests/CodeGen/MachineInstrTest.cpp')
0 files changed, 0 insertions, 0 deletions