aboutsummaryrefslogtreecommitdiff
path: root/llvm/docs/tutorial/MyFirstLanguageFrontend
diff options
context:
space:
mode:
authorIgor Kirillov <igor.kirillov@arm.com>2024-12-12 14:06:24 +0000
committerGitHub <noreply@github.com>2024-12-12 14:06:24 +0000
commite909c0ccd40e6d6aa2d10e0b60e8b992f3cde35b (patch)
treef912b68ea045dcb6e24e2cfc5659f809a34f7760 /llvm/docs/tutorial/MyFirstLanguageFrontend
parent10ef20f6a629797d81252de143117e2a0bc6556d (diff)
downloadllvm-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