[LoopIdiomRecognize] Replace more unchecked dyn_casts with cast.
authorCraig Topper <craig.topper@intel.com>
Fri, 4 May 2018 01:04:28 +0000 (01:04 +0000)
committerCraig Topper <craig.topper@intel.com>
Fri, 4 May 2018 01:04:28 +0000 (01:04 +0000)
commit9510f7063657b8be12c0dafa67c9029669b8d6fa
tree95ed8fb0810f95c9b8f42d1b3c48bc30ed9c43f2
parentcafae62ec9dd4345b777d2227cf3381d90f69033
[LoopIdiomRecognize] Replace more unchecked dyn_casts with cast.

Two of these are immediately dereferenced on the next line. The other two are passed immediately to the IRBuilder constructor which can't handle a nullptr.

llvm-svn: 331500
llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp