[llvm-bugs] [Bug 46786] ScalarEvolution::getGEPExpr assertion failure "GEP should not change type mid-flight."

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jul 22 01:46:05 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=46786

Max Kazantsev <max.kazantsev at azul.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |RESOLVED
         Resolution|---                         |FIXED

--- Comment #15 from Max Kazantsev <max.kazantsev at azul.com> ---
Assert disabled by:

commit b96114c1e1fc4448ea966bce013706359aee3fa9
Author: Max Kazantsev <mkazantsev at azul.com>
Date:   Wed Jul 22 15:32:13 2020 +0700

    [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


I'll try to help to find cases that we are still missing to have this assert,
because generally preserving a notion of something being a pointer seems
useful. Unfortunately, we are not yet in point to say we preserve it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200722/ba90d461/attachment.html>


More information about the llvm-bugs mailing list