]> granicus.if.org Git - llvm/commit
[GlobalISel] Partially revert r371901.
authorAmara Emerson <aemerson@apple.com>
Mon, 16 Sep 2019 23:46:03 +0000 (23:46 +0000)
committerAmara Emerson <aemerson@apple.com>
Mon, 16 Sep 2019 23:46:03 +0000 (23:46 +0000)
commite5fe899c4b578e2ecf4820738d15dffff5efe291
tree8e35838b24509616fd6ae37003b98ed301647a38
parentd632f745eff1dec0e1219bcb700b73459ac3b8b5
[GlobalISel] Partially revert r371901.

r371901 was overeager and widenScalarDst() and the like in the legalizer
attempt to increment the insert point given in order to add new instructions
after the currently legalizing inst. In cases where the insertion point is not
exactly the current instruction, then callers need to de-compensate for the
behaviour by decrementing the insertion iterator before calling them. It's not
a nice state of affairs, for now just undo the problematic parts of the change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372050 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/GlobalISel/LegalizerHelper.cpp
test/CodeGen/AArch64/GlobalISel/legalize-phi-insertpt-decrement.mir [new file with mode: 0644]
test/CodeGen/AMDGPU/GlobalISel/legalize-phi.mir