hanchenye-llvm-project/polly/lib/Analysis
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
..
DependenceInfo.cpp Adjust formatting to commit r292110 [NFC] 2017-01-16 14:08:10 +00:00
PolyhedralInfo.cpp Perform copying to created arrays according to the packing transformation 2016-09-14 06:26:09 +00:00
ScopBuilder.cpp Tidy up getFirstNonBoxedLoopFor [NFC] 2017-01-16 22:54:29 +00:00
ScopDetection.cpp Adjust formatting to commit r292110 [NFC] 2017-01-16 14:08:10 +00:00
ScopDetectionDiagnostic.cpp Adjust formatting to commit r292110 [NFC] 2017-01-16 14:08:10 +00:00
ScopGraphPrinter.cpp Fix clang-format 2016-12-19 14:06:40 +00:00
ScopInfo.cpp Relax assert when setting access functions with invariant base pointers 2017-01-17 12:00:42 +00:00
ScopPass.cpp