author | Hal Finkel <hfinkel@anl.gov> | |
Thu, 31 Jul 2014 19:13:38 +0000 (19:13 +0000) | ||
committer | Hal Finkel <hfinkel@anl.gov> | |
Thu, 31 Jul 2014 19:13:38 +0000 (19:13 +0000) | ||
commit | 50c05c91f96f905287200a32d26e31c01c576050 | |
tree | b54c7e0386462e996e5609f77f9a0ecd0e4a19d4 | tree | snapshot (tar.xz tar.gz zip) |
parent | 94f7c7aeaa1821c657c57926c67ee691c007fe43 | commit | diff |
Fix ScalarEvolutionExpander when creating a PHI in a block with duplicate predecessors
It seems that when I fixed this, almost exactly a year ago, I did not quite do
it correctly. When we have duplicate block predecessors, we can indeed not have
different incoming values for the same block, but we *must* have duplicate
entries. So, instead of skipping the duplicates, we explicitly add the
duplicate incoming values.
Fixes PR20442.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214423 91177308-0d34-0410-b5e6-96231b3b80d8
It seems that when I fixed this, almost exactly a year ago, I did not quite do
it correctly. When we have duplicate block predecessors, we can indeed not have
different incoming values for the same block, but we *must* have duplicate
entries. So, instead of skipping the duplicates, we explicitly add the
duplicate incoming values.
Fixes PR20442.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214423 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolutionExpander.cpp | diff | blob | history | |
test/CodeGen/PowerPC/pr20442.ll | [new file with mode: 0644] | blob |