removePartialRedundancy was using extendToIndices on each subrange
without passing in an Undefs vector containing main reg defs that are
undef in the subrange, causing the above assert.
Unfortunately I can only reproduce this in an ll test. Turning it into a
mir test makes the problem go away.
Change-Id: I4f3ba2afb20d79f9467afb3d882f0328d38531be
Please check that the code after coalescing is correct.
Eg., the pass could silently crash and produce an empty function, the test would still pass!