[AMDGPU] Call isLoopExiting for blocks in the loop.
authorFlorian Hahn <flo@fhahn.com>
Mon, 1 Jul 2019 12:36:44 +0000 (12:36 +0000)
committerFlorian Hahn <flo@fhahn.com>
Mon, 1 Jul 2019 12:36:44 +0000 (12:36 +0000)
commit33c8c0ea2756f25f9914d328906debf20cfc49d5
tree88f8eb3d1a143c45f1d17b3536b410aa9784b5c7
parentd5c3e34cb7ed17b38c1fae73fc9e65fdc7d28a28
[AMDGPU] Call isLoopExiting for blocks in the loop.

isLoopExiting should only be called for blocks in the loop. A follow
up patch makes this requirement an assertion.

I've updated the usage here, to only match for actual exit blocks. Previously,
it would also match blocks not in the loop.

Reviewers: arsenm, nhaehnle

Reviewed By: nhaehnle

Differential Revision: https://reviews.llvm.org/D63980

llvm-svn: 364750
llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp