[llvm] r218526 - R600/SI: Remove apparently dead code in legalizeOperands
Matt Arsenault
Matthew.Arsenault at amd.com
Fri Sep 26 10:54:38 PDT 2014
Author: arsenm
Date: Fri Sep 26 12:54:38 2014
New Revision: 218526
URL: http://llvm.org/viewvc/llvm-project?rev=218526&view=rev
Log:
R600/SI: Remove apparently dead code in legalizeOperands
No tests hit this, and I don't see any way a GlobalAddress
node would survive beyond lowering on SI. It it would, the
move should probably be inserted by selection.
Modified:
llvm/trunk/lib/Target/R600/SIISelLowering.cpp
Modified: llvm/trunk/lib/Target/R600/SIISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/SIISelLowering.cpp?rev=218526&r1=218525&r2=218526&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/SIISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/R600/SIISelLowering.cpp Fri Sep 26 12:54:38 2014
@@ -1790,14 +1790,6 @@ SDNode *SITargetLowering::legalizeOperan
ensureSRegLimit(DAG, Ops[i], RegClass, ScalarSlotUsed);
}
continue;
- } else {
- // If it's not a VSrc or SSrc operand check if we have a GlobalAddress.
- // These will be lowered to immediates, so we will need to insert a MOV.
- if (isa<GlobalAddressSDNode>(Ops[i])) {
- SDNode *Node = DAG.getMachineNode(AMDGPU::V_MOV_B32_e32, SDLoc(),
- Operand.getValueType(), Operand);
- Ops[i] = SDValue(Node, 0);
- }
}
if (i == 1 && DescRev && fitsRegClass(DAG, Ops[0], RegClass)) {
More information about the llvm-commits
mailing list