]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/commit
Fix ScalarEvolutionExpander when creating a PHI in a block with duplicate predecessors
authorHal Finkel <hfinkel@anl.gov>
Thu, 31 Jul 2014 19:13:38 +0000 (19:13 +0000)
committerHal Finkel <hfinkel@anl.gov>
Thu, 31 Jul 2014 19:13:38 +0000 (19:13 +0000)
commit50c05c91f96f905287200a32d26e31c01c576050
treeb54c7e0386462e996e5609f77f9a0ecd0e4a19d4
parent94f7c7aeaa1821c657c57926c67ee691c007fe43
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
lib/Analysis/ScalarEvolutionExpander.cpp
test/CodeGen/PowerPC/pr20442.ll [new file with mode: 0644]