OSDN Git Service

[LoopDeletion] (cleanup, NFC) Stop passing around reference to a vector
authorChandler Carruth <chandlerc@gmail.com>
Tue, 17 Jan 2017 22:00:52 +0000 (22:00 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 17 Jan 2017 22:00:52 +0000 (22:00 +0000)
commit40d8cc12dd752776cefd64f4ab972a7493821ee6
tree59eec3042d9ddbfaabf0b6e6474b7c6bcc0fed1d
parent067ba90db44f518c45e0c2191ae1cc51237fb424
[LoopDeletion] (cleanup, NFC) Stop passing around reference to a vector
that we know has exactly one element when all we are going to do is get
that one element out of it.

Instead, pass around that one element.

There are more simplifications to come in this code...

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292273 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Scalar/LoopDeletion.h
lib/Transforms/Scalar/LoopDeletion.cpp