aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
diff options
context:
space:
mode:
authorDavid Green <david.green@arm.com>2022-05-11 10:47:44 +0100
committerDavid Green <david.green@arm.com>2022-05-11 10:47:44 +0100
commit5feeceddb2b5422dcb555b6d601e35a2d7840707 (patch)
treef32d5e50afcae3043f983d624c77278333db81a8 /llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
parentc1d48b35d88a7eb497c9f9851bfab868228c52dd (diff)
downloadllvm-5feeceddb2b5422dcb555b6d601e35a2d7840707.zip
llvm-5feeceddb2b5422dcb555b6d601e35a2d7840707.tar.gz
llvm-5feeceddb2b5422dcb555b6d601e35a2d7840707.tar.bz2
[TypePromotion] Fix sext vs zext in promoted constant
As pointed out in #55342, given non-canonical IR with multiple constants, we check the second operand in isSafeWrap, but can promote both with sext. Fix that as suggested by @craig.topper by ensuring we only extend the second constant if multiple are present. Fixes #55342 Differential Revision: https://reviews.llvm.org/D125294
Diffstat (limited to 'llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp')
0 files changed, 0 insertions, 0 deletions