[all-commits] [llvm/llvm-project] b96114: [SCEV] Remove premature assert. PR46786
max-azul via All-commits
all-commits at lists.llvm.org
Wed Jul 22 01:43:52 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: b96114c1e1fc4448ea966bce013706359aee3fa9
https://github.com/llvm/llvm-project/commit/b96114c1e1fc4448ea966bce013706359aee3fa9
Author: Max Kazantsev <mkazantsev at azul.com>
Date: 2020-07-22 (Wed, 22 Jul 2020)
Changed paths:
M llvm/lib/Analysis/ScalarEvolution.cpp
A llvm/test/Analysis/ScalarEvolution/pr46786.ll
Log Message:
-----------
[SCEV] Remove premature assert. PR46786
This assert was added to verify assumption that GEP's SCEV will be of pointer type,
basing on fact that it should be a SCEVAddExpr with (at least) last operand being
pointer. Two notes:
- GEP's SCEV does not have to be a SCEVAddExpr after all simplifications;
- In current state, GEP's SCEV does not have to have at least one pointer operands
(all of them can become int during the transforms).
However, we might want to be at a point where it is true. We are currently removing
this assert and will try to enumerate the cases where "is pointer" notion might be
lost during the transforms. When all of them are fixed, we can return it.
Differential Revision: https://reviews.llvm.org/D84294
Reviewed By: lebedev.ri
More information about the All-commits
mailing list