llvm-project/polly/test
David Peixotto a4817871d2 Safely generate new loop metadata node
Polly was accidently modifying a debug info metadata node when
attempting to generate a new unique metadata node for the loop id.
The problem was that we had dwarf metadata that referred to a
metadata node with a null value, like this:

  !6 = ... some dwarf metadata referring to !7 ...
  !7 = {null}

When we attempt to generate a new metadata node, we reserve the
first space for self-referential node by setting the first argument
to null and then mutating the node later to refer to itself.
However, because the nodes are uniqued based on pointer values, when
we get the new metadata node it actually referred to an existing
node (!7 in the example).  When we went to modify the metadata to
point to itself, we were accidently mutating the dwarf metatdata. We
ended up in this situation:

  !6 = ... some dwarf metadata referring to !7 ...
  !7 = {!7}

and this causes an assert when generating the debug info. The fix is
simple, we just need to use a unique value when getting a new
metadata node. The MDNode::getTemporary() provides exactly the API
we need (and it is used in clang to generate the unique nodes).

Differential Revision: http://reviews.llvm.org/D6174

llvm-svn: 221550
2014-11-07 21:44:18 +00:00
..
Cloog [Fix] Accidently changed the type of a libgomp argument in r219003. 2014-10-03 20:40:24 +00:00
CodePreparation Delete trivial PHI nodes (aka stack slot sharing) 2014-04-01 16:01:33 +00:00
DeadCodeElimination Revert "Added support for modulo expressions" 2014-08-16 09:08:55 +00:00
Dependences Annotate reduction parallel loops in the IslAst textual output 2014-07-15 00:00:35 +00:00
IndependentBlocks IndependentBlocks: Do not assert for PHI nodes outside of scops 2014-01-29 23:08:10 +00:00
Isl Safely generate new loop metadata node 2014-11-07 21:44:18 +00:00
ScheduleOptimizer Explicitly annotate loops we want to run thread-parallel 2014-11-06 19:35:21 +00:00
ScopDetect DI: LLVM schema change: fold constants into string 2014-10-03 21:08:48 +00:00
ScopDetectionDiagnostics DI: LLVM schema change: fold constants into string 2014-10-03 21:08:48 +00:00
ScopInfo Change the RegionSet type to a SetVector 2014-10-22 20:39:07 +00:00
TempScop TempScop: Actually load Polly in this test case 2013-07-29 05:18:09 +00:00
CMakeLists.txt Do not run GPGPU test cases without nvptx target 2014-05-14 14:18:14 +00:00
Makefile Remove executable bit on test files 2014-09-12 09:07:50 +00:00
README
create_ll.sh Add -e to test generation script 2014-09-09 22:14:38 +00:00
lit.cfg Do not run GPGPU test cases without nvptx target 2014-05-14 14:18:14 +00:00
lit.site.cfg.in Replace %defaultOpts with explicit pass names 2014-08-30 09:13:28 +00:00
polly.ll Replace %defaultOpts with explicit pass names 2014-08-30 09:13:28 +00:00

README

place tests here