aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/MathExtras.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2020-09-19 08:26:38 -0400
committerMatt Arsenault <Matthew.Arsenault@amd.com>2020-09-23 09:07:50 -0400
commitc463fd136ec259ec269ee6741763ce595811da71 (patch)
tree9b5a960bc7a2f25547749ac6ac95d752165cdfb1 /llvm/lib/Support/MathExtras.cpp
parentaf0207f2bae8578c5283877a786e502ce6e33b14 (diff)
downloadllvm-c463fd136ec259ec269ee6741763ce595811da71.zip
llvm-c463fd136ec259ec269ee6741763ce595811da71.tar.gz
llvm-c463fd136ec259ec269ee6741763ce595811da71.tar.bz2
GlobalISel: Fix truncating shift amount in trunc (shl) combine
The shift amount type does not necessarily match the result type. This was inserting a trunc from s32 to s32, which asserted. Just preserve the original shift amount type which can be legalized later.
Diffstat (limited to 'llvm/lib/Support/MathExtras.cpp')
0 files changed, 0 insertions, 0 deletions