llvm-project/polly/lib
Tobias Grosser e1ff0cf2eb Relax assert when setting access functions with invariant base pointers
Summary:
Instead of forbidding such access functions completely, we verify that their
base pointer has been hoisted and only assert in case the base pointer was
not hoisted.

I was trying for a little while to get a test case that ensures the assert is
correctly fired in case of invariant load hoisting being disabled, but I could
not find a good way to do so, as llvm-lit immediately aborts if a command
yields a non-zero return value. As we do not generally test our asserts,
not having a test case here seems OK.

This resolves http://llvm.org/PR31494

Suggested-by: Michael Kruse <llvm@meinersbur.de>

Reviewers: efriedma, jdoerfert, Meinersbur, gareevroman, sebpop, zinob, huihuiz, pollydev

Reviewed By: Meinersbur

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

llvm-svn: 292213
2017-01-17 12:00:42 +00:00
..
Analysis Relax assert when setting access functions with invariant base pointers 2017-01-17 12:00:42 +00:00
CodeGen Relax assert when setting access functions with invariant base pointers 2017-01-17 12:00:42 +00:00
Exchange Perform copying to created arrays according to the packing transformation 2016-09-14 06:26:09 +00:00
External Do not track the isl PDF manual in SVN 2017-01-16 11:48:03 +00:00
JSON Fix spacing around variable initializations and for-loops. NFC. 2016-08-09 17:49:24 +00:00
Support Tidy up getFirstNonBoxedLoopFor [NFC] 2017-01-16 22:54:29 +00:00
Transform Adjust formatting to commit r292110 [NFC] 2017-01-16 14:08:10 +00:00
CMakeLists.txt [DeLICM] Add pass boilerplate code. 2016-11-29 16:41:21 +00:00
Polly.cpp Drop '@brief' from doxygen comments 2016-09-02 06:33:33 +00:00