Displaying 3 results from an estimated 3 matches for "curloc".
2019 Jul 03
2
optimisation issue in an llvm IR pass
...quot;), MDNode::get(C, None));
Value *PrevLocCasted = IRB.CreateZExt(PrevLoc, IRB.getInt32Ty());
LoadInst *MapPtr = IRB.CreateLoad(AFLMapPtr);
MapPtr->setMetadata(M.getMDKindID("nosanitize"), MDNode::get(C, None));
Value *MapPtrIdx = IRB.CreateGEP(MapPtr, IRB.CreateXor(PrevLocCasted,
CurLoc));
LoadInst *Counter = IRB.CreateLoad(MapPtrIdx);
Counter->setMetadata(M.getMDKindID("nosanitize"), MDNode::get(C, None));
Value *Incr = IRB.CreateAdd(Counter, ConstantInt::get(Int8Ty, 1));
// ^^^ same code before both variants
// CODE FOR VARIANT #1
auto cf = IRB.CreateICmpEQ(Incr,...
2019 Jul 03
3
optimisation issue in an llvm IR pass
...vLocCasted = IRB.CreateZExt(PrevLoc, IRB.getInt32Ty());
>
> LoadInst *MapPtr = IRB.CreateLoad(AFLMapPtr);
> MapPtr->setMetadata(M.getMDKindID("nosanitize"), MDNode::get(C, None));
> Value *MapPtrIdx = IRB.CreateGEP(MapPtr, IRB.CreateXor(PrevLocCasted,
> CurLoc));
>
> LoadInst *Counter = IRB.CreateLoad(MapPtrIdx);
> Counter->setMetadata(M.getMDKindID("nosanitize"), MDNode::get(C, None));
>
> Value *Incr = IRB.CreateAdd(Counter, ConstantInt::get(Int8Ty, 1));
> // ^^^ same code before both variants
>
>...
2014 Aug 27
6
[LLVMdev] Minimizing -gmlt
...------ next part --------------
diff --git lib/CodeGen/CGDebugInfo.cpp lib/CodeGen/CGDebugInfo.cpp
index 0b20f54..e3f23c4 100644
--- lib/CodeGen/CGDebugInfo.cpp
+++ lib/CodeGen/CGDebugInfo.cpp
@@ -2534,8 +2534,12 @@ void CGDebugInfo::EmitFunctionStart(GlobalDecl GD,
if (Loc.isInvalid())
CurLoc = SourceLocation();
}
- unsigned LineNo = getLineNumber(Loc);
- unsigned ScopeLine = getLineNumber(ScopeLoc);
+ unsigned LineNo = 0;
+ unsigned ScopeLine = 0;
+ if (DebugKind > CodeGenOptions::DebugLineTablesOnly) {
+ LineNo = getLineNumber(Loc);
+ ScopeLine = getLineNumber(ScopeLo...