[PATCH] D59789: [DSE] Preserve basic block ordering using OrderedBasicBlock.
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 25 12:55:40 PDT 2019
efriedma added inline comments.
================
Comment at: llvm/lib/Analysis/OrderedBasicBlock.cpp:92
+ if (LastInstFound == BB->begin()) {
+ LastInstFound++;
+ if (LastInstFound != BB->end())
----------------
Can you just set "LastInstFound = BB->end()", instead of actually numbering the new first instruction?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59789/new/
https://reviews.llvm.org/D59789
More information about the llvm-commits
mailing list