This fixes Transforms/LoopUnroll/runtime-loop3.ll which failed with
EXTENSIVE_DEBUG, because the cloned basic blocks were not added to the
correct sub-loops in LoopUnrollRuntime.cpp.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Thanks for fixing it! The patch looks good to me, but I'd suggest committing it in two separate pieces: 1) factoring out addClonedBlockToLoopInfo (that should be NFC), 2) fixing CloneLoopBlocks in LoopUnrollRuntime.cpp. Also, I recommend to drop unnecessary whitespace changes.
Michael
Comment Actions
Thanks for the comments. I've committed the factoring out in https://reviews.llvm.org/rL291614 and will land the second commit from Phabricator.