mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 06:32:24 +00:00
New binops need debug loc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133642 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
46d061c0fb
commit
df3ad6697b
@ -159,7 +159,8 @@ Value *SCEVExpander::InsertBinop(Instruction::BinaryOps Opcode,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If we haven't found this binop, insert it.
|
// If we haven't found this binop, insert it.
|
||||||
Value *BO = Builder.CreateBinOp(Opcode, LHS, RHS, "tmp");
|
Instruction *BO = cast<Instruction>(Builder.CreateBinOp(Opcode, LHS, RHS, "tmp"));
|
||||||
|
BO->setDebugLoc(SaveInsertPt->getDebugLoc());
|
||||||
rememberInstruction(BO);
|
rememberInstruction(BO);
|
||||||
|
|
||||||
// Restore the original insert point.
|
// Restore the original insert point.
|
||||||
@ -1155,6 +1156,7 @@ Value *SCEVExpander::visitAddRecExpr(const SCEVAddRecExpr *S) {
|
|||||||
Instruction *Add = BinaryOperator::CreateAdd(CanonicalIV, One,
|
Instruction *Add = BinaryOperator::CreateAdd(CanonicalIV, One,
|
||||||
"indvar.next",
|
"indvar.next",
|
||||||
HP->getTerminator());
|
HP->getTerminator());
|
||||||
|
Add->setDebugLoc(HP->getTerminator()->getDebugLoc());
|
||||||
rememberInstruction(Add);
|
rememberInstruction(Add);
|
||||||
CanonicalIV->addIncoming(Add, HP);
|
CanonicalIV->addIncoming(Add, HP);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user