[all-commits] [llvm/llvm-project] c4c379: [LoopStrengthReduction] Fix pointer extend asserts
bcahoon via All-commits
all-commits at lists.llvm.org
Fri Jul 30 14:30:16 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c4c379d633a136d544436d01c77d75c094d90b12
https://github.com/llvm/llvm-project/commit/c4c379d633a136d544436d01c77d75c094d90b12
Author: Brendon Cahoon <brendon.cahoon at amd.com>
Date: 2021-07-30 (Fri, 30 Jul 2021)
Changed paths:
M llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
A llvm/test/Transforms/LoopStrengthReduce/AMDGPU/lsr-invalid-ptr-extend.ll
Log Message:
-----------
[LoopStrengthReduction] Fix pointer extend asserts
Additional asserts were added to ScalarEvolution to enforce
pointer/int type rules. An assert is triggered when the LSR pass
attempts to extend a pointer SCEV in GenerateTruncates.
This patch changes GenerateTruncates to exit early if the Formaula
contains a ScaledReg or BaseReg with a pointer type.
Differential Revision: https://reviews.llvm.org/D107185
More information about the All-commits
mailing list