diff options
| author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2023-10-29 17:09:16 +0000 |
|---|---|---|
| committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2023-10-29 17:35:24 +0000 |
| commit | 8d2efd7427ff01277f68a95ec27b83193c1c15fb (patch) | |
| tree | 3e97bacf82350b61956b162b327d685e6cf0e0b2 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | a65070a76a7c823c28f1c95a21e4857ed6e123ef (diff) | |
[DAG] Avoid ComputeNumSignBits call when we know the result is unsigned
D146121 needs to set the NSW flag, but given the result is NUW then we know that the result has leading zeros, so we don't need to call ComputeNumSignBits - just reuse the existing KnownBits value instead.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
