Skip to content

Commit

Permalink
[NewGVN] Simplyfy loop NFC
Browse files Browse the repository at this point in the history
llvm-svn: 290683
  • Loading branch information
prazek committed Dec 28, 2016
1 parent cc7fbf7 commit 26dada7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions llvm/lib/Transforms/Scalar/NewGVN.cpp
Expand Up @@ -1915,10 +1915,7 @@ bool NewGVN::eliminateInstructions(Function &F) {

// Cleanup the congruence class.
SmallPtrSet<Value *, 4> MembersLeft;
for (auto MI = CC->Members.begin(), ME = CC->Members.end(); MI != ME;) {
auto CurrIter = MI;
++MI;
Value *Member = *CurrIter;
for (Value * Member : CC->Members) {
if (Member->getType()->isVoidTy()) {
MembersLeft.insert(Member);
continue;
Expand Down

0 comments on commit 26dada7

Please sign in to comment.