From: Benjamin Kramer Date: Wed, 2 Sep 2015 19:52:23 +0000 (+0000) Subject: [RemoveDuplicatePHINodes] Start over after removing a PHI. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=7c393ccd9736428919f59443e8f5104906a0c8f6;p=oota-llvm.git [RemoveDuplicatePHINodes] Start over after removing a PHI. This makes RemoveDuplicatePHINodes more effective and fixes an assertion failure. Triggering the assertions requires a DenseSet reallocation so this change only contains a constructive test. I'll explain the issue with a small example. In the following function there's a duplicate PHI, %4 and %5 are identical. When this is found the DenseSet in RemoveDuplicatePHINodes contains %2, %3 and %4. define void @F() { br label %1 ;