diff options
author | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2017-01-03 20:33:22 +0000 |
---|---|---|
committer | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2017-01-03 20:33:22 +0000 |
commit | 6aff744e7cec0f603dc0555fc7c78bee952f308d (patch) | |
tree | c32bbc026e2ce6931e77fe0fdffb18ddd8241afe /llvm/lib/CodeGen/MachineCopyPropagation.cpp | |
parent | ccf2f7352f82edf76b83c22812572258962698d6 (diff) | |
download | bcm5719-llvm-6aff744e7cec0f603dc0555fc7c78bee952f308d.tar.gz bcm5719-llvm-6aff744e7cec0f603dc0555fc7c78bee952f308d.zip |
[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.
llvm-svn: 290905
Diffstat (limited to 'llvm/lib/CodeGen/MachineCopyPropagation.cpp')
0 files changed, 0 insertions, 0 deletions