diff options
author | Igor Kirillov <igor.kirillov@arm.com> | 2024-12-12 14:06:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-12 14:06:24 +0000 |
commit | e909c0ccd40e6d6aa2d10e0b60e8b992f3cde35b (patch) | |
tree | f912b68ea045dcb6e24e2cfc5659f809a34f7760 /llvm/docs/tutorial/MyFirstLanguageFrontend | |
parent | 10ef20f6a629797d81252de143117e2a0bc6556d (diff) | |
download | llvm-e909c0ccd40e6d6aa2d10e0b60e8b992f3cde35b.zip llvm-e909c0ccd40e6d6aa2d10e0b60e8b992f3cde35b.tar.gz llvm-e909c0ccd40e6d6aa2d10e0b60e8b992f3cde35b.tar.bz2 |
[SelectOpt] Add support for AShr/LShr operands (#118495)
For conditional increments with sign check conditions like X < 0 or X >= 0,
the compiler may generate code like this:
%cmp = icmp sgt i64 %1, -1
%shift = ashr i64 %1, 63
%j.next = add nsw i64 %j, %shift
%sel = select i1 %cmp ...
, where %cmp is not in computation but in some other implicit or regular
expressions. This patch allows SelectOptimize pass to recognise these
cases.
Diffstat (limited to 'llvm/docs/tutorial/MyFirstLanguageFrontend')
0 files changed, 0 insertions, 0 deletions