diff options
author | Yingwei Zheng <dtcxzyw2333@gmail.com> | 2025-02-03 14:00:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-03 14:00:28 +0800 |
commit | 711fcae67ac4902283c513c5c91fe171595b3916 (patch) | |
tree | 779553298aa275471a53bf0b45e9e68ffea4cd4a /llvm/lib/CodeGen/ReachingDefAnalysis.cpp | |
parent | 046dd4b28b9c1a75a96cf63465021ffa9fe1a979 (diff) | |
download | llvm-711fcae67ac4902283c513c5c91fe171595b3916.zip llvm-711fcae67ac4902283c513c5c91fe171595b3916.tar.gz llvm-711fcae67ac4902283c513c5c91fe171595b3916.tar.bz2 |
[ValueTracking] Handle `trunc nuw` in `computeKnownBitsFromICmpCond` (#125414)
This patch extends https://github.com/llvm/llvm-project/pull/82803 to
further infer high bits when `nuw` is set. It will save some and
instructions on induction variables. No real-world benefit is observed
for `trunc nsw`.
Alive2: https://alive2.llvm.org/ce/z/j-YFvt
Diffstat (limited to 'llvm/lib/CodeGen/ReachingDefAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions