[llvm-commits] [llvm] r168001 - /llvm/trunk/lib/Target/NVPTX/NVPTXISelLowering.cpp

Justin Holewinski justin.holewinski at gmail.com
Tue Nov 20 04:45:48 PST 2012


Pawel,

Please merge this into 3.2.


On Wed, Nov 14, 2012 at 6:46 PM, NAKAMURA Takumi <geek4civic at gmail.com>wrote:

> Author: chapuni
> Date: Wed Nov 14 17:46:15 2012
> New Revision: 168001
>
> URL: http://llvm.org/viewvc/llvm-project?rev=168001&view=rev
> Log:
> NVPTXISelLowering.cpp: Fix warnings. [-Wunused-variable]
>
> Modified:
>     llvm/trunk/lib/Target/NVPTX/NVPTXISelLowering.cpp
>
> Modified: llvm/trunk/lib/Target/NVPTX/NVPTXISelLowering.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/NVPTX/NVPTXISelLowering.cpp?rev=168001&r1=168000&r2=168001&view=diff
>
> ==============================================================================
> --- llvm/trunk/lib/Target/NVPTX/NVPTXISelLowering.cpp (original)
> +++ llvm/trunk/lib/Target/NVPTX/NVPTXISelLowering.cpp Wed Nov 14 17:46:15
> 2012
> @@ -874,10 +874,9 @@
>    SDNode *Node = Op.getNode();
>    LoadSDNode *LD = cast<LoadSDNode>(Node);
>    DebugLoc dl = Node->getDebugLoc();
> -  ISD::LoadExtType ExtType = LD->getExtensionType();
> -  assert(ExtType == ISD::NON_EXTLOAD) ;
> -  EVT VT = Node->getValueType(0);
> -  assert(VT == MVT::i1 && "Custom lowering for i1 load only");
> +  assert(LD->getExtensionType() == ISD::NON_EXTLOAD) ;
> +  assert(Node->getValueType(0) == MVT::i1 &&
> +         "Custom lowering for i1 load only");
>    SDValue newLD = DAG.getLoad(MVT::i8, dl, LD->getChain(),
> LD->getBasePtr(),
>                                LD->getPointerInfo(),
>                                LD->isVolatile(), LD->isNonTemporal(),
> @@ -903,8 +902,7 @@
>    SDValue Tmp1 = ST->getChain();
>    SDValue Tmp2 = ST->getBasePtr();
>    SDValue Tmp3 = ST->getValue();
> -  EVT VT = Tmp3.getValueType();
> -  assert(VT == MVT::i1 && "Custom lowering for i1 store only");
> +  assert(Tmp3.getValueType() == MVT::i1 && "Custom lowering for i1 store
> only");
>    unsigned Alignment = ST->getAlignment();
>    bool isVolatile = ST->isVolatile();
>    bool isNonTemporal = ST->isNonTemporal();
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>



-- 

Thanks,

Justin Holewinski
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121120/108314a3/attachment.html>


More information about the llvm-commits mailing list