llvm-project/polly/lib
Eli Friedman 5e589ea4b1 [ScopInfo] Fix crash with sum of invariant load and AddRec.
r303971 added an assertion that SCEV addition involving an AddRec
and a SCEVUnknown must involve a dominance relation: either the
SCEVUnknown value dominates the AddRec's loop, or the AddRec's
loop header dominates the SCEVUnknown. This is generally fine
for most usage of SCEV because it isn't possible to write an
expression in IR which would violate it, but it's a bit inconvenient
here for polly.

To solve the issue, just avoid creating a SCEV expression which
triggers the asssertion.

I'm not really happy with this solution, but I don't have any better
ideas.

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

Differential Revision: https://reviews.llvm.org/D34259

llvm-svn: 305864
2017-06-20 22:53:02 +00:00
..
Analysis [ScopInfo] Fix crash with sum of invariant load and AddRec. 2017-06-20 22:53:02 +00:00
CodeGen [CodeGen] Emit aliasing metadata for new arrays. 2017-06-19 10:19:29 +00:00
Exchange Fix a lot of typos. NFC. 2017-06-08 12:06:15 +00:00
External [ScheduleOptimizer] Move isolateFullPartialTiles and isolateAndUnrollMatMulInnerLoops to C++ 2017-06-19 10:40:12 +00:00
Support Don't check side effects for functions outside of SCoP 2017-06-14 22:43:28 +00:00
Transform [ScheduleOptimizer] Fix minor typo [NFC] 2017-06-19 16:55:48 +00:00
CMakeLists.txt [Polly][NewPM] Reenable ScopPassManager unittest 2017-05-23 11:28:50 +00:00
Polly.cpp Drop '@brief' from doxygen comments 2016-09-02 06:33:33 +00:00