diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2024-02-20 18:10:25 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2024-02-20 18:10:25 +0000 |
commit | d2173d8f534d73d2a3fab074a721729626859755 (patch) | |
tree | b9c7fb9694696511e4a930714ff61a5bc3f88bae /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 7f3980a7b2c9f95ab3b106a94fe6e63158155b0b (diff) | |
download | llvm-d2173d8f534d73d2a3fab074a721729626859755.zip llvm-d2173d8f534d73d2a3fab074a721729626859755.tar.gz llvm-d2173d8f534d73d2a3fab074a721729626859755.tar.bz2 |
[InstCombine] foldFCmpIntToFPConst - simplify repeated calls to getBitWidth/getScalarSizeInBits. NFC.
Noticed on #82241 - we don't need to use the IntegerType just for the scalar width, and we were calling it 3 times in different forms - we can just call Type::getScalarSizeInBits once and reuse.
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions