]> granicus.if.org Git - llvm/commit
AMDGPU: Do operand folding in program order
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 20 Jun 2017 18:56:32 +0000 (18:56 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 20 Jun 2017 18:56:32 +0000 (18:56 +0000)
commit5516bd138753bea8573bc97883fa8ab8507d874d
tree6d17e1d08b28752dd5fc106c84ab617c1d11d479
parent6ebce80ed17745cab6920e6b6c9050129255efcf
AMDGPU: Do operand folding in program order

Before it was possible to partially fold use instructions
before the defs. After the xor is folded into a copy, the same
mov can end up in the fold list twice, so on the second attempt
it will fail expecting to see a register to fold.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305821 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIFoldOperands.cpp
test/CodeGen/AMDGPU/fold-operands-order.mir [new file with mode: 0644]