]> granicus.if.org Git - llvm/commit
[LoopInfo] Update getExitEdges to accept vector of pairs for non const BasicBlock
authorSerguei Katkov <serguei.katkov@azul.com>
Tue, 9 Jul 2019 04:20:43 +0000 (04:20 +0000)
committerSerguei Katkov <serguei.katkov@azul.com>
Tue, 9 Jul 2019 04:20:43 +0000 (04:20 +0000)
commitcb8f66de850c6540e0adef562437f4363c6ecf30
treec05ba4ccdbc231bde1be9767bfbee8e7e98f22dd
parent895b369874a059880cd3c98138e29bcadba38337
[LoopInfo] Update getExitEdges to accept vector of pairs for non const BasicBlock

D63921 requires getExitEdges fills a vector of Edge pairs where
BasicBlocks are not constant.

The rest Loop API mostly returns non-const BasicBlocks, so to be more consistent with
other Loop API getExitEdges is modified to return non-const BasicBlocks as well.

This is an alternative solution to D64060.

Reviewers: reames, fhahn
Reviewed By: reames, fhahn
Subscribers: hiraditya, llvm-commits
Differential Revision: https://reviews.llvm.org/D64309

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365437 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/LoopInfo.h
lib/Transforms/Scalar/LoopPredication.cpp