[PATCH] D124764: [NFC][GVNSink] Don't pretend that iteration is over instructions when it's actually over blocks
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 2 05:37:56 PDT 2022
nikic added inline comments.
================
Comment at: llvm/lib/Transforms/Scalar/GVNSink.cpp:787
+ ++BB;
}
----------------
Make this something like `erase_if(Preds, [](BasicBlock *BB) { return BB->getTerminator()->getNumSuccessors() != 1; }`?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124764/new/
https://reviews.llvm.org/D124764
More information about the llvm-commits
mailing list