diff options
author | Sanjay Patel <spatel@rotateright.com> | 2015-06-17 20:54:46 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2015-06-17 20:54:46 +0000 |
commit | a3f423b4fcaf889b8cc233ec090e83f83d9aa03c (patch) | |
tree | 2d63e4619ed69d307747368b15b762854f58df5f | |
parent | fcbdb6ea5888f61e1ca566629c03fa6de0719750 (diff) | |
download | bcm5719-llvm-a3f423b4fcaf889b8cc233ec090e83f83d9aa03c.tar.gz bcm5719-llvm-a3f423b4fcaf889b8cc233ec090e83f83d9aa03c.zip |
remove unnecessary casts; NFC
llvm-svn: 239942
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 3259ff78696..ed0334841df 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -2929,8 +2929,7 @@ void SelectionDAGBuilder::visitLoad(const LoadInst &I) { Root = TLI.prepareVolatileOrAtomicLoad(Root, dl, DAG); SmallVector<SDValue, 4> Values(NumValues); - SmallVector<SDValue, 4> Chains(std::min(unsigned(MaxParallelChains), - NumValues)); + SmallVector<SDValue, 4> Chains(std::min(MaxParallelChains, NumValues)); EVT PtrVT = Ptr.getValueType(); unsigned ChainI = 0; for (unsigned i = 0; i != NumValues; ++i, ++ChainI) { @@ -2994,8 +2993,7 @@ void SelectionDAGBuilder::visitStore(const StoreInst &I) { SDValue Ptr = getValue(PtrV); SDValue Root = getRoot(); - SmallVector<SDValue, 4> Chains(std::min(unsigned(MaxParallelChains), - NumValues)); + SmallVector<SDValue, 4> Chains(std::min(MaxParallelChains, NumValues)); EVT PtrVT = Ptr.getValueType(); bool isVolatile = I.isVolatile(); bool isNonTemporal = I.getMetadata(LLVMContext::MD_nontemporal) != nullptr; |