[llvm-bugs] [Bug 47457] LoopLoadElim: assert failed "cast<Ty>() argument of incompatible type!"

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Sep 9 23:43:22 PDT 2020


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

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

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

--- Comment #3 from Max Kazantsev <max.kazantsev at azul.com> ---
[LoopLoadElim] Filter away candidates that stop being AddRecs after loop
versioning. PR47457

The test in PR47457 demonstrates a situation when candidate load's pointer's
SCEV
is no loger a SCEVAddRec after loop versioning. The code there assumes that it
is
always a SCEVAddRec and crashes otherwise.

This patch makes sure that we do not consider candidates for which this
requirement
is broken after the versioning.

Differential Revision: https://reviews.llvm.org/D87355
Reviewed By: asbirlea

-- 
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/20200910/d5117643/attachment.html>


More information about the llvm-bugs mailing list