diff options
author | chenglin.bi <chenglin.bi@linaro.org> | 2023-02-10 10:31:44 +0800 |
---|---|---|
committer | chenglin.bi <chenglin.bi@linaro.org> | 2023-02-10 10:33:07 +0800 |
commit | 6f149a17d4b1a254dd41a3b910021481c564a691 (patch) | |
tree | ce1ad9e423b25c3b76e6f303dcfde3ae83cc7d0c /lldb/source/Commands/CommandObjectCommands.cpp | |
parent | de17c665e3f995c7f5a0e453461ce3a1b8aec196 (diff) | |
download | llvm-6f149a17d4b1a254dd41a3b910021481c564a691.zip llvm-6f149a17d4b1a254dd41a3b910021481c564a691.tar.gz llvm-6f149a17d4b1a254dd41a3b910021481c564a691.tar.bz2 |
[InstCombine] Look through truncate to fold icmp with intrinsics
The output of intrinsic functions like ctpop, cttz, ctlz have limited range from 0 to bitwidth. So if the truncate destination type can hold the source bitwidth size, we can just ignore the truncate and use the truncate src to do combination.
Alive2 proofs:
https://alive2.llvm.org/ce/z/9D_-qP
Reviewed By: spatel
Differential Revision: https://reviews.llvm.org/D143368
Diffstat (limited to 'lldb/source/Commands/CommandObjectCommands.cpp')
0 files changed, 0 insertions, 0 deletions