diff options
author | Anna Thomas <anna@azul.com> | 2017-09-15 13:29:33 +0000 |
---|---|---|
committer | Anna Thomas <anna@azul.com> | 2017-09-15 13:29:33 +0000 |
commit | 512dde77ba7925f8911bc12de4f66e576ffe7c06 (patch) | |
tree | 69df7dd56f998025a8ed260486b486398a5e0dbd /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 2a3209ed0a288bdd57e1addd87d9e8e49c4e7ece (diff) | |
download | llvm-512dde77ba7925f8911bc12de4f66e576ffe7c06.zip llvm-512dde77ba7925f8911bc12de4f66e576ffe7c06.tar.gz llvm-512dde77ba7925f8911bc12de4f66e576ffe7c06.tar.bz2 |
[RuntimeUnrolling] Populate the VMap entry correctly when default generated through lookup
During runtime unrolling on loops with multiple exits, we update the
exit blocks with the correct phi values from both original and remainder
loop.
In this process, we lookup the VMap for the mapped incoming phi values,
but did not update the VMap if a default entry was generated in the VMap
during the lookup. This default value is generated when constants or
values outside the current loop are looked up.
This patch fixes the assertion failure when null entries are present in
the VMap because of this lookup. Added a testcase that showcases the
problem.
llvm-svn: 313358
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions