]> granicus.if.org Git - llvm/commit
[LOOPGUARD] Remove asserts in getLoopGuardBranch
authorWhitney Tsang <whitney.uwaterloo@gmail.com>
Sun, 6 Oct 2019 16:39:43 +0000 (16:39 +0000)
committerWhitney Tsang <whitney.uwaterloo@gmail.com>
Sun, 6 Oct 2019 16:39:43 +0000 (16:39 +0000)
commitad9846bf79706cce7d6c7e0b6b08ba8cf4fce79c
tree8c3945152dd2005fdcf6c7055aa7c576fccdc4fd
parentf913f0cbe3348a575e0e1ea4d6f6be933e510391
[LOOPGUARD] Remove asserts in getLoopGuardBranch
Summary: The assertion in getLoopGuardBranch can be a 'return nullptr'
under if condition.
Authored By: DTharun
Reviewer: Whitney, fhahn
Reviewed By: Whitney, fhahn
Subscribers: fhahn, llvm-commits
Tag: LLVM
Differential Revision: https://reviews.llvm.org/D66084

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373857 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/LoopInfo.cpp
unittests/Analysis/LoopInfoTest.cpp