[PATCH] D54023: [LoopSimplifyCFG] Delete dead in-loop blocks
Fedor Sergeev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 22 00:43:04 PST 2018
fedor.sergeev added inline comments.
================
Comment at: lib/Transforms/Scalar/LoopSimplifyCFG.cpp:228
"Header not in loop?");
}
----------------
Dont you want to add an assert here on
BlocksInLoopAfterFolding + DeadLoopBlocks <= NumBlocks ?
you seem to be relying on that invariant later on (when comparing this sum with numblocks for equality).
https://reviews.llvm.org/D54023
More information about the llvm-commits
mailing list