[Hexagon] Skip byval arguments when checking parameter attributes
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Thu, 11 Aug 2016 18:15:16 +0000 (18:15 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Thu, 11 Aug 2016 18:15:16 +0000 (18:15 +0000)
commit60f0b514855219a13a9b5929ed6b7ee53e8afb3e
treea35940671c36d76a2581578a799fce04479cad08
parentfd34ba53e34bfcdffde5fe0c12efab78381e2c73
[Hexagon] Skip byval arguments when checking parameter attributes

From the point of view of register assignment, byval parameters are
ignored: a byval parameter is not going to be assigned to a register,
and it will not affect the assignments of subsequent parameters.
When matching registers with parameters in the bit tracker, make sure
to skip byval parameters before advancing the registers.

llvm-svn: 278375
llvm/lib/Target/Hexagon/HexagonBitTracker.cpp
llvm/test/CodeGen/Hexagon/bit-skip-byval.ll [new file with mode: 0644]