[llvm] r214729 - Use the known address space constant rather than checking it

Matt Arsenault Matthew.Arsenault at amd.com
Mon Aug 4 09:55:35 PDT 2014


Author: arsenm
Date: Mon Aug  4 11:55:35 2014
New Revision: 214729

URL: http://llvm.org/viewvc/llvm-project?rev=214729&view=rev
Log:
Use the known address space constant rather than checking it

Modified:
    llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp

Modified: llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp?rev=214729&r1=214728&r2=214729&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp Mon Aug  4 11:55:35 2014
@@ -706,7 +706,7 @@ SDValue AMDGPUTargetLowering::LowerGloba
       Offset = MFI->LocalMemoryObjects[GV];
     }
 
-    return DAG.getConstant(Offset, getPointerTy(G->getAddressSpace()));
+    return DAG.getConstant(Offset, getPointerTy(AMDGPUAS::LOCAL_ADDRESS));
   }
   case AMDGPUAS::CONSTANT_ADDRESS: {
     MachineFrameInfo *FrameInfo = DAG.getMachineFunction().getFrameInfo();





More information about the llvm-commits mailing list