summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2023-10-29 17:09:16 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2023-10-29 17:35:24 +0000
commit8d2efd7427ff01277f68a95ec27b83193c1c15fb (patch)
tree3e97bacf82350b61956b162b327d685e6cf0e0b2 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parenta65070a76a7c823c28f1c95a21e4857ed6e123ef (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