[SystemZ] Improve getCurrCycleIdx() in SystemZHazardRecognizer.
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Wed, 7 Mar 2018 08:54:32 +0000 (08:54 +0000)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Wed, 7 Mar 2018 08:54:32 +0000 (08:54 +0000)
commit9b0f28f009672a337e97c5aaa6b04607b1dd5617
tree92d587379edc63a3e09bcee798ad820186a27eed
parente18dbeb24f4c5627d3afd6e8a2a99eaee8607017
[SystemZ]  Improve getCurrCycleIdx() in SystemZHazardRecognizer.

getCurrCycleIdx() returns the decoder cycle index which the next candidate SU
will be placed on.

This patch improves this method by passing the candidate SU to it so that if
SU will begin a new group, the index of that group is returned instead.

Review: Ulrich Weigand
llvm-svn: 326880
llvm/lib/Target/SystemZ/SystemZHazardRecognizer.cpp
llvm/lib/Target/SystemZ/SystemZHazardRecognizer.h