Matt Arsenault
f0d9e47da2
AMDGPU: Refactor isVGPRToSGPRCopy
...
It should now correctly handle physical registers and make
it easier to identify the other direction.
llvm-svn: 250132
2015-10-13 00:07:54 +00:00
Matt Arsenault
922b7bf808
AMDGPU: Remove inferRegClassFromUses / inferRegClassFromDefs
...
I'm not sure why this would be necessary, and no tests fail with
them removed. Looking at the uses is suspect as well because
the use reg classes will likely change when the users are moved
as a result of moving this instruction.
llvm-svn: 249493
2015-10-07 00:42:31 +00:00
Matt Arsenault
db7f0ef367
AMDGPU: Remove dead code
...
There's no point in checking VReg_1 because all uses
of it should already have been removed by SILowerI1Copies.
llvm-svn: 249081
2015-10-01 21:51:57 +00:00
Matt Arsenault
0cb8517dc6
AMDGPU: Fix recomputing dominator tree unnecessarily
...
SIFixSGPRCopies does not modify the CFG, but this was
being recomputed before running SIFoldOperands.
llvm-svn: 248587
2015-09-25 17:21:28 +00:00
Matt Arsenault
85441dd724
AMDGPU: Move copy handling under switch like other instructions
...
llvm-svn: 248172
2015-09-21 16:27:22 +00:00
Matt Arsenault
e0b44040aa
AMDGPU: Simplify debug printing
...
llvm-svn: 247345
2015-09-10 21:51:19 +00:00
Tom Stellard
45bb48ea19
R600 -> AMDGPU rename
...
llvm-svn: 239657
2015-06-13 03:28:10 +00:00