diff options
author | Antonio Frighetto <me@antoniofrighetto.com> | 2023-11-07 14:04:21 +0100 |
---|---|---|
committer | Antonio Frighetto <me@antoniofrighetto.com> | 2023-11-07 14:15:32 +0100 |
commit | caa124b58d9f59b36ec751c98ca1bd1d1ceb0a73 (patch) | |
tree | 1ed5399d87bcef42b9621b72e0d209b9aad6b7de /llvm/lib/CodeGen/StackProtector.cpp | |
parent | 16ef4968dc9e93f9c7b361b9ad0645445bd1210e (diff) | |
download | llvm-caa124b58d9f59b36ec751c98ca1bd1d1ceb0a73.zip llvm-caa124b58d9f59b36ec751c98ca1bd1d1ceb0a73.tar.gz llvm-caa124b58d9f59b36ec751c98ca1bd1d1ceb0a73.tar.bz2 |
[InstCombine] Zero-extend shift amounts in narrow funnel shift ops
An issue arose when handling shift amounts while performing
narrowed funnel shifts simplification. Specifically, shift
amounts were incorrectly truncated when their type was
narrower than the target bit width. This has been addressed
by zero-extending `ShAmt` in such cases.
Fixes: https://github.com/llvm/llvm-project/issues/71463.
Proof: https://alive2.llvm.org/ce/z/5draKz.
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions