summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/LoopSimplify/dup-preds.ll
Commit message (Collapse)AuthorAgeFilesLines
* UpdatePHINodes in BasicBlockUtils should not crash on duplicate predecessorsHal Finkel2013-10-041-0/+46
UpdatePHINodes has an optimization to reuse an existing PHI node, where it first deletes all of its entries and then replaces them. Unfortunately, in the case where we had duplicate predecessors (which are allowed so long as the associated PHI entries have the same value), the loop removing the existing PHI entries from the to-be-reused PHI would assert (if that PHI was not the one which had the duplicates). llvm-svn: 192001
OpenPOWER on IntegriCloud