[PATCH] R600: Use CONSTANT_BUFFER_0 address space for Implicit Parameters

Chad Rosier mcrosier at apple.com
Mon Mar 18 09:30:52 PDT 2013


Test case?

 Chad

On Mar 16, 2013, at 9:45 AM, Vincent Lejeune <vljn at ovi.com> wrote:

> It allows the backend to generate reads to constant cache which
> are faster that VTX_READ.
> ---
> lib/Target/R600/R600ISelLowering.cpp | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/Target/R600/R600ISelLowering.cpp b/lib/Target/R600/R600ISelLowering.cpp
> index a0e27ea..caa1899 100644
> --- a/lib/Target/R600/R600ISelLowering.cpp
> +++ b/lib/Target/R600/R600ISelLowering.cpp
> @@ -522,7 +522,7 @@ SDValue R600TargetLowering::LowerImplicitParameter(SelectionDAG &DAG, EVT VT,
>                                                    unsigned DwordOffset) const {
>   unsigned ByteOffset = DwordOffset * 4;
>   PointerType * PtrType = PointerType::get(VT.getTypeForEVT(*DAG.getContext()),
> -                                      AMDGPUAS::PARAM_I_ADDRESS);
> +                                      AMDGPUAS::CONSTANT_BUFFER_0);
> 
>   // We shouldn't be using an offset wider than 16-bits for implicit parameters.
>   assert(isInt<16>(ByteOffset));
> -- 
> 1.8.1.4
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130318/e1b9f0be/attachment.html>


More information about the llvm-commits mailing list