[llvm] r331613 - [TargetLowering] Use StringRef::split instead of SplitString. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sun May 6 18:32:18 PDT 2018
Author: ctopper
Date: Sun May 6 18:32:18 2018
New Revision: 331613
URL: http://llvm.org/viewvc/llvm-project?rev=331613&view=rev
Log:
[TargetLowering] Use StringRef::split instead of SplitString. NFC
SplitString splits based on a list of delimeters, but we're only using one delimeter so we should use the simpler split.
Modified:
llvm/trunk/lib/CodeGen/TargetLoweringBase.cpp
Modified: llvm/trunk/lib/CodeGen/TargetLoweringBase.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/TargetLoweringBase.cpp?rev=331613&r1=331612&r2=331613&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/TargetLoweringBase.cpp (original)
+++ llvm/trunk/lib/CodeGen/TargetLoweringBase.cpp Sun May 6 18:32:18 2018
@@ -1723,7 +1723,7 @@ static int getOpEnabled(bool IsSqrt, EVT
return TargetLoweringBase::ReciprocalEstimate::Unspecified;
SmallVector<StringRef, 4> OverrideVector;
- SplitString(Override, OverrideVector, ",");
+ Override.split(OverrideVector, ',');
unsigned NumArgs = OverrideVector.size();
// Check if "all", "none", or "default" was specified.
@@ -1783,7 +1783,7 @@ static int getOpRefinementSteps(bool IsS
return TargetLoweringBase::ReciprocalEstimate::Unspecified;
SmallVector<StringRef, 4> OverrideVector;
- SplitString(Override, OverrideVector, ",");
+ Override.split(OverrideVector, ',');
unsigned NumArgs = OverrideVector.size();
// Check if "all", "default", or "none" was specified.
More information about the llvm-commits
mailing list