[GlobalISel] Fix incorrect setting of ValNo when splitting
authorGabriel Hjort Ã…kerlund <gabriel.hjort.akerlund@ericsson.com>
Wed, 30 Sep 2020 13:24:41 +0000 (15:24 +0200)
committerMikael Holmen <mikael.holmen@ericsson.com>
Wed, 30 Sep 2020 14:08:51 +0000 (16:08 +0200)
commit43d239d0fadb1f8ea297580ca39dfbee96c913c1
treeea0c28563248afa77742bd7e9786f3a1383001ac
parentdfb717da1f794c235b81a985a57dc238c82318e6
[GlobalISel] Fix incorrect setting of ValNo when splitting

Before, for each original argument i, ValNo was set to i + PartIdx, but
ValNo is intended to reflect the index of the value before splitting.
Hence, ValNo should always be set to i and not consider the PartIdx.

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D86511
llvm/lib/CodeGen/GlobalISel/CallLowering.cpp