PPCISelLowering.cpp: Fix r162725.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 30 Aug 2012 15:52:29 +0000 (15:52 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 30 Aug 2012 15:52:29 +0000 (15:52 +0000)
commitd2a35f2937af443241fc3d1b0c6104a587170f24
tree65816637c3f9a1c0c2fe53e7ccc3a8ba205c8334
parent25f6b5a5541e34f8e703f0b5e090e4910dc9d0d7
PPCISelLowering.cpp: Fix r162725.

[Tobias von Koch] What's happening here is that the CR6SET/CR6UNSET is breaking the chain of register copies glued to the function call (BL_SVR4 node). The scheduler then moves other instructions in between those and the function call, which isn't good!

Right. That's the case where there is no chain of register copies before the call, so InFlag == 0... Attached is a new revision of the patch which should fix this for good.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162916 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp