[PATCH] R600/SI: Use getTargetConstant in AdjustRegClass
Matt Arsenault
arsenm2 at gmail.com
Wed Dec 10 11:24:14 PST 2014
> On Dec 10, 2014, at 2:01 PM, Marek Olšák <maraeo at gmail.com> wrote:
>
> From: Marek Olšák <marek.olsak at amd.com>
>
> ---
> lib/Target/R600/SIISelLowering.cpp | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/lib/Target/R600/SIISelLowering.cpp b/lib/Target/R600/SIISelLowering.cpp
> index 66a9c76..132aa28 100644
> --- a/lib/Target/R600/SIISelLowering.cpp
> +++ b/lib/Target/R600/SIISelLowering.cpp
> @@ -2159,9 +2159,9 @@ MachineSDNode *SITargetLowering::AdjustRegClass(MachineSDNode *N,
>
> // The immediate offset is in dwords on SI and in bytes on VI.
> if (Subtarget->getGeneration() >= AMDGPUSubtarget::VOLCANIC_ISLANDS)
> - Ops.push_back(DAG.getConstant(Offset->getSExtValue(), MVT::i32));
> + Ops.push_back(DAG.getTargetConstant(Offset->getSExtValue(), MVT::i32));
> else
> - Ops.push_back(DAG.getConstant(Offset->getSExtValue() << 2, MVT::i32));
> + Ops.push_back(DAG.getTargetConstant(Offset->getSExtValue() << 2, MVT::i32));
>
> // Copy remaining operands so we keep any chain and glue nodes that follow
> // the normal operands.
> --
> 2.1.0
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
LGTM
More information about the llvm-commits
mailing list