[function-attrs] Refactor code to handle shorter code with early exits.
authorChandler Carruth <chandlerc@gmail.com>
Tue, 27 Oct 2015 01:41:43 +0000 (01:41 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 27 Oct 2015 01:41:43 +0000 (01:41 +0000)
commit59991f96f9c522f456d9cb6d2eda4a226806d7ff
tree42c926807e3e147879fc088a912b4b68b4f6c463
parent80fb6a4137ba13542a3547e35e2e4a5404ed6ba2
[function-attrs] Refactor code to handle shorter code with early exits.

No functionality changed here, but the indentation is substantially
reduced and IMO the code is much easier to read. I've also added some
helpful comments.

This is just a clean-up I wrote while studying the code, and that has
been in my backlog for a while.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251381 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/FunctionAttrs.cpp