summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1c831f7)
raw | patch | inline | side by side (parent: 1c831f7)
author | Rafael Espindola <rafael.espindola@gmail.com> | |
Tue, 1 Oct 2013 13:32:03 +0000 (13:32 +0000) | ||
committer | Rafael Espindola <rafael.espindola@gmail.com> | |
Tue, 1 Oct 2013 13:32:03 +0000 (13:32 +0000) |
Patch by Alp Toker.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191757 91177308-0d34-0410-b5e6-96231b3b80d8
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191757 91177308-0d34-0410-b5e6-96231b3b80d8
25 files changed:
index 48d7d05d788f63f9ba61186c926d5a1cc87e0387..dabd34750148de332812b64382e1145a1d614dd9 100644 (file)
}
}
- std::string errorInfo;
std::string filename = EdgeProfileFilename;
// Open a handle to the file
index 2cf2de674e01b47b880762a585856e915c6d373c..bdc79068946a69996f8665027f7567029a026444 100644 (file)
Lex.Lex();
ValID Fn, Label;
- LocTy FnLoc, LabelLoc;
if (ParseToken(lltok::lparen, "expected '(' in block address expression") ||
ParseValID(Fn) ||
// Parse the instructions in this block until we get a terminator.
Instruction *Inst;
- SmallVector<std::pair<unsigned, MDNode *>, 4> MetadataOnInst;
do {
// This instruction may have three possibilities for a name: a) none
// specified, b) name specified "%foo =", c) number specified: "%4 =".
index 62ceb8b3a2556fb0631ca5b3cc777254824b5f02..1756f942e4dbe659de9596b98fba21ad3c29a572 100644 (file)
case ISD::SIGN_EXTEND: {
EVT InVT = Op.getOperand(0).getValueType();
unsigned InBits = InVT.getScalarType().getSizeInBits();
- APInt InSignBit = APInt::getSignBit(InBits);
APInt NewBits = APInt::getHighBitsSet(BitWidth, BitWidth - InBits);
KnownZero = KnownZero.trunc(InBits);
const APInt &RA = Rem->getAPIntValue().abs();
if (RA.isPowerOf2()) {
APInt LowBits = RA - 1;
- APInt Mask2 = LowBits | APInt::getSignBit(BitWidth);
ComputeMaskedBits(Op.getOperand(0), KnownZero2,KnownOne2,Depth+1);
// The low bits of the first operand are unchanged by the srem.
for (unsigned i = 0; i < NumMemOps; i++) {
EVT VT = MemOps[i];
unsigned VTSize = VT.getSizeInBits() / 8;
- SDValue Value, Store;
+ SDValue Value;
Value = DAG.getLoad(VT, dl, Chain,
getMemBasePlusOffset(Src, SrcOff, dl, DAG),
for (unsigned i = 0; i < NumMemOps; i++) {
EVT VT = MemOps[i];
unsigned VTSize = VT.getSizeInBits() / 8;
- SDValue Value, Store;
+ SDValue Store;
Store = DAG.getStore(Chain, dl, LoadValues[i],
getMemBasePlusOffset(Dst, DstOff, dl, DAG),
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 6d097a68f83e24bbb3825c1ce5e2ab36bfbb9f2c..fcde6b5b939af7787ff49c5a4a3978b682bc34e1 100644 (file)
}
}
- SDValue Res;
if (InputChains.size() == 1)
return InputChains[0];
return CurDAG->getNode(ISD::TokenFactor, SDLoc(ChainNodesMatched[0]),
index 8a1d567877586b94fe7160df28442560f2ada1d1..ff0181e0f0c2c59372d29c44415bf8118690b787 100644 (file)
bool
TailDuplicatePass::canCompletelyDuplicateBB(MachineBasicBlock &BB) {
- SmallPtrSet<MachineBasicBlock*, 8> Succs(BB.succ_begin(), BB.succ_end());
-
for (MachineBasicBlock::pred_iterator PI = BB.pred_begin(),
PE = BB.pred_end(); PI != PE; ++PI) {
MachineBasicBlock *PredBB = *PI;
index 7a9400d28afa447718ce27ae8e4e2f10820365de..85be415dce07f17b8a7ae636c0191d0dc7507175 100644 (file)
errs() << "Running 'dotty' program... ";
if (!ExecGraphViewer(dotty, args, Filename, wait, ErrMsg))
return;
+#else
+ (void)Filename;
+ (void)ErrMsg;
#endif
}
index 16a96fb1d7bdfc712a9954501aae4a79892786d7..6289f9ebdbf705d04ebd9bf218383691fa37c750 100644 (file)
}
static SDValue LowerIntVSETCC_AVX512(SDValue Op, SelectionDAG &DAG) {
- SDValue Cond;
SDValue Op0 = Op.getOperand(0);
SDValue Op1 = Op.getOperand(1);
SDValue CC = Op.getOperand(2);
static SDValue LowerVSETCC(SDValue Op, const X86Subtarget *Subtarget,
SelectionDAG &DAG) {
- SDValue Cond;
SDValue Op0 = Op.getOperand(0);
SDValue Op1 = Op.getOperand(1);
SDValue CC = Op.getOperand(2);
index d1db79f6ae2d8ec1c2e8cd967a639cd3822a8c1e..b9c620fddc440acd6a967739ba548764df7ea9c6 100644 (file)
!ConstantSize ||
ConstantSize->getZExtValue() >
Subtarget->getMaxInlineSizeThreshold()) {
- SDValue InFlag(0, 0);
-
// Check to see if there is a specialized entry-point for memory zeroing.
ConstantSDNode *V = dyn_cast<ConstantSDNode>(Src);
diff --git a/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/lib/Transforms/Instrumentation/AddressSanitizer.cpp
index 8f8af20cee182afb88e05dca3193a0c30f6fe7db..7ced56bedd2e81584f013a8016ec9d9248ec64e6 100644 (file)
StructType *GlobalStructTy = StructType::get(IntptrTy, IntptrTy,
IntptrTy, IntptrTy,
IntptrTy, IntptrTy, NULL);
- SmallVector<Constant *, 16> Initializers(n), DynamicInit;
-
+ SmallVector<Constant *, 16> Initializers(n);
Function *CtorFunc = M.getFunction(kAsanModuleCtorName);
assert(CtorFunc);
index e17a416083256817b4fc1deb1a39746b1efb00d8..a2e82f337b9dba5e68bf8046f26ce98ca6ff602b 100644 (file)
// If the edge isn't critical, then BB has a single successor or Succ has a
// single pred. Split the block.
- BasicBlock::iterator SplitPoint;
if (BasicBlock *SP = Succ->getSinglePredecessor()) {
// If the successor only has a single pred, split the top of the successor
// block.
index f66b54d5067295abffb82d4e9915b8a5d380a15a..9799a30f6a0f51fccba691c05ba65c18e0514fb6 100644 (file)
// Scan all of the uses and see if the live range is live across an unwind
// edge. If we find a use live across an invoke edge, create an alloca
// and spill the value.
- std::set<InvokeInst*> InvokesWithStoreInserted;
// Find all of the blocks that this value is live in.
std::set<BasicBlock*> LiveBBs;
diff --git a/lib/Transforms/Vectorize/LoopVectorize.cpp b/lib/Transforms/Vectorize/LoopVectorize.cpp
index 0b5d0d41d08f9c6c1e5d9f9107b81a10017e6474..d5df111588ff0e44f875a37d8f4aaef79767cb0a 100644 (file)
return true;
}
- SmallPtrSet<Value *, 16> ReadOnlyPtr;
for (I = Loads.begin(), IE = Loads.end(); I != IE; ++I) {
LoadInst *LD = cast<LoadInst>(*I);
Value* Ptr = LD->getPointerOperand();
diff --git a/lib/Transforms/Vectorize/SLPVectorizer.cpp b/lib/Transforms/Vectorize/SLPVectorizer.cpp
index c8c8ba51b7e1aaeee0a7604dc9b8640075b63f08..c2c53c7c577405f646c751f69eac16c6f4422167 100644 (file)
assert(isPowerOf2_32(ReduxWidth) &&
"We only handle power-of-two reductions for now");
- SmallVector<Constant *, 32> ShuffleMask(ReduxWidth, 0);
Value *TmpVec = ValToReduce;
for (unsigned i = ReduxWidth / 2; i != 0; i >>= 1) {
if (IsPairwiseReduction) {
index 3d3dac3274d151bc5ea9e5bd45b07075fc77f53f..c05c8d702da03cd03f3ff4e511ab49dba627878e 100644 (file)
if (AI == 0) AI = Interpreter;
assert(AI && "Interpreter should have been created already!");
bool CreatedBitcode = false;
- std::string ErrMsg;
if (BitcodeFile.empty()) {
// Emit the program to a bitcode file...
SmallString<128> UniqueFilename;
index ba15667d8c30657c5b25f1572d029088e35375d0..768b94b6907134926b2c806d51e2c30da2054249 100644 (file)
BasicBlock::iterator LI = L->begin(), LE = L->end();
BasicBlock::iterator RI = R->begin();
- llvm::SmallVector<std::pair<Instruction*,Instruction*>, 20> TentativePairs;
-
do {
assert(LI != LE && RI != R->end());
Instruction *LeftI = &*LI, *RightI = &*RI;
index 2f51c0c3d05769facffdd986990aa04bfe2ed1a8..ab1e162ea52e088101c5dcaccfabe8937df57084 100644 (file)
Options.UseInitArray = UseInitArray;
unsigned BaseArg = 0;
- std::string ErrorMessage;
LTOCodeGenerator CodeGen;
index 403be5a92baa28c09578e759ede64a10e42c3252..86923fd1d7f53091aa4ec2098d100deb6608dca6 100644 (file)
getSectionsAndSymbols(Header, MachOOF, Sections, Symbols, FoundFns,
BaseSegmentAddress);
- // Make a copy of the unsorted symbol list. FIXME: duplication
- std::vector<SymbolRef> UnsortedSymbols(Symbols);
// Sort the symbols by address, just in case they didn't come in that way.
std::sort(Symbols.begin(), Symbols.end(), SymbolSorter());
index 52d0130069467bc443bdeb0b98f8049426611c1f..6c340b89c65c2bc49f921ccffee9a2496d3abe9b 100644 (file)
bool ProfileInfoPrinterPass::runOnModule(Module &M) {
ProfileInfo &PI = getAnalysis<ProfileInfo>();
- std::map<const Function *, unsigned> FuncFreqs;
- std::map<const BasicBlock*, unsigned> BlockFreqs;
- std::map<ProfileInfo::Edge, unsigned> EdgeFreqs;
// Output a report. Eventually, there will be multiple reports selectable on
// the command line, for now, just keep things simple.
index 71f03bc3d0690ddadb9add5e0838bc80a41d4156..ffa0e01425eeb7b793b6dacf800df7fe1f9f8f28 100644 (file)
template<class ELFT>
void ELFDumper<ELFT>::printFileHeaders() {
- error_code EC;
-
const typename ELFO::Elf_Ehdr *Header = Obj->getHeader();
{
void ELFDumper<ELFT>::printRelocations() {
ListScope D(W, "Relocations");
- error_code EC;
int SectionNumber = -1;
for (typename ELFO::Elf_Shdr_Iter SecI = Obj->begin_sections(),
SecE = Obj->end_sections();
void ELFDumper<ELFT>::printNeededLibraries() {
ListScope D(W, "NeededLibraries");
- error_code EC;
-
typedef std::vector<StringRef> LibsTy;
LibsTy Libs;
index e27a58aaa4ff9242f5dc773a93127855ad97d7a2..b97166b4c1bb1332bf4e86f6d9b1c00e77aaca29 100644 (file)
}
void MachODumper::printSymbol(symbol_iterator SymI) {
- error_code EC;
-
StringRef SymbolName;
if (SymI->getName(SymbolName))
SymbolName = "";
index 1e28c4e9d6ca2c4c672cfca1379c92108eda9159..02d7ebf7740ab4531e4dcce4ea4c18ed910b4b12 100644 (file)
const object::coff_relocation *reloc = Obj.getCOFFRelocation(rIter);
COFFYAML::Relocation Rel;
object::symbol_iterator Sym = rIter->getSymbol();
- StringRef Name;
Sym->getName(Rel.SymbolName);
Rel.VirtualAddress = reloc->VirtualAddress;
Rel.Type = reloc->Type;
index 558090bbf63c28b60e85d049c28ae53e0a3ff32f..a19df793cf5ce1a85a29a1164b30be3974ee93af 100644 (file)
unsigned VariantCount = Target.getAsmParserVariantCount();
for (unsigned VC = 0; VC != VariantCount; ++VC) {
Record *AsmVariant = Target.getAsmParserVariant(VC);
- std::string CommentDelimiter =
- AsmVariant->getValueAsString("CommentDelimiter");
- std::string RegisterPrefix = AsmVariant->getValueAsString("RegisterPrefix");
int AsmVariantNo = AsmVariant->getValueAsInt("Variant");
OS << "static const MatchEntry MatchTable" << VC << "[] = {\n";
OS << " default: // unreachable\n";
for (unsigned VC = 0; VC != VariantCount; ++VC) {
Record *AsmVariant = Target.getAsmParserVariant(VC);
- std::string CommentDelimiter =
- AsmVariant->getValueAsString("CommentDelimiter");
- std::string RegisterPrefix = AsmVariant->getValueAsString("RegisterPrefix");
int AsmVariantNo = AsmVariant->getValueAsInt("Variant");
OS << " case " << AsmVariantNo << ": Start = MatchTable" << VC
<< "; End = array_endof(MatchTable" << VC << "); break;\n";
OS << " default: // unreachable\n";
for (unsigned VC = 0; VC != VariantCount; ++VC) {
Record *AsmVariant = Target.getAsmParserVariant(VC);
- std::string CommentDelimiter =
- AsmVariant->getValueAsString("CommentDelimiter");
- std::string RegisterPrefix = AsmVariant->getValueAsString("RegisterPrefix");
int AsmVariantNo = AsmVariant->getValueAsInt("Variant");
OS << " case " << AsmVariantNo << ": Start = MatchTable" << VC
<< "; End = array_endof(MatchTable" << VC << "); break;\n";
index 13b28df10b85dd929cb268bb897274007da6230a..a6d1daf91a485f39d70025fd941df9eff00a2c0c 100644 (file)
Cond = std::string("MI->getNumOperands() == ") + llvm::utostr(LastOpNo);
IAP->addCond(Cond);
- std::map<StringRef, unsigned> OpMap;
bool CantHandle = false;
for (unsigned i = 0, e = LastOpNo; i != e; ++i) {
index ee32aa13e0343fcc6383f831457d1779621baf2c..cb7ec3e9b9ab3ffed4bef09440bfd1d5b5c24da6 100644 (file)
void MapTableEmitter::buildRowInstrMap() {
for (unsigned i = 0, e = InstrDefs.size(); i < e; i++) {
- std::vector<Record*> InstrList;
Record *CurInstr = InstrDefs[i];
std::vector<Init*> KeyValue;
ListInit *RowFields = InstrMapDesc.getRowFields();
index 6e452409ab73f26883498b150949c57749ecbdad..87d18cdb9d46bb31ed600740f315278898c6aab0 100644 (file)
}
DecoderTableInfo TableInfo;
- std::set<unsigned> Sizes;
for (std::map<std::pair<std::string, unsigned>,
std::vector<unsigned> >::const_iterator
I = OpcMap.begin(), E = OpcMap.end(); I != E; ++I) {