]> granicus.if.org Git - llvm/commit
[CodeGen] Simplify logic that looks for returned call operands. NFC-ish.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Tue, 3 Jan 2017 20:33:22 +0000 (20:33 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Tue, 3 Jan 2017 20:33:22 +0000 (20:33 +0000)
commit26b44dde796433874973d119e742f1962488dc76
treef8b90d30ea26f302fe376651cb4fce6376ed7ce6
parent3b6c9c19a0bd8a1ce4ee11d98e18f931b3493553
[CodeGen] Simplify logic that looks for returned call operands. NFC-ish.

Use getReturnedArgOperand() instead of rolling our own.  Note that it's
equivalent because there can only be one 'returned' operand.

The existing code was also incorrect: there already was awkward logic to
ignore callee/EH blocks, but operands can now also be operand bundles,
in which case we'll look for non-existent parameter attributes.

Unfortunately, this isn't observable in-tree, as it only crashes when
exercising the regular call lowering logic with operand bundles.
Still, this is a nice small cleanup anyway.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290905 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/Analysis.cpp