Use all_of instead of a raw loop; NFC
authorSanjoy Das <sanjoy@playingwithpointers.com>
Tue, 3 May 2016 17:50:06 +0000 (17:50 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Tue, 3 May 2016 17:50:06 +0000 (17:50 +0000)
commit7e7a5a050ab4f424a2a5832567f3ee2093aa0926
treea423efdb48194731e39dfea0a679941ec975bc9c
parent905fc27ebf9ec5a262dc320bb66e68f17d597248
Use all_of instead of a raw loop; NFC

Added some tests despite being NFC, since it looks like nothing was
exercising the "all incoming values to exit PHIs are same" logic.

llvm-svn: 268407
llvm/lib/Transforms/Scalar/LoopDeletion.cpp
llvm/test/Transforms/LoopDeletion/multiple-exits.ll