[NFC]: Fix PVS Studio warning in LoopNestAnalysis
authorTsang Whitney W.H <whitneyt@recycler.canlab.ibm.com>
Sun, 10 Nov 2019 05:39:40 +0000 (05:39 +0000)
committerTsang Whitney W.H <whitneyt@recycler.canlab.ibm.com>
Sun, 10 Nov 2019 05:39:40 +0000 (05:39 +0000)
commit89453d186dc6ef985965f621efaa409f0ab7ede2
tree029647e1bfc2dc35abbc07260acfe3b3a2fea93d
parentc2751737e58c86a9c90bc8d6246893abcb06c3ca
[NFC]: Fix PVS Studio warning in LoopNestAnalysis
Summary:This patch fixes the following warnings uncovered by PVS
Studio:

/home/xbolva00/LLVM/llvm-project/llvm/lib/Analysis/LoopCacheAnalysis.cpp
353 warn V612 An unconditional 'return' within a loop.
/home/xbolva00/LLVM/llvm-project/llvm/lib/Analysis/LoopCacheAnalysis.cpp
456 err V502 Perhaps the '?:' operator works in a different way than it
was expected. The '?:' operator has a lower priority than the '=='
operator.
Authored By:etiotto
Reviewer:Meinersbur, kbarton, bmahjour, Whitney, xbolva00
Reviewed By:xbolva00
Subscribers:hiraditya, llvm-commits
Tag:LLVM
Differential Revision:https://reviews.llvm.org/D69821
llvm/lib/Analysis/LoopCacheAnalysis.cpp