mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
Preserve line number information.
llvm-svn: 131482
This commit is contained in:
parent
9a0301219b
commit
b7b53e9a24
@ -2102,6 +2102,7 @@ bool GVN::performPRE(Function &F) {
|
||||
|
||||
PREInstr->insertBefore(PREPred->getTerminator());
|
||||
PREInstr->setName(CurInst->getName() + ".pre");
|
||||
PREInstr->setDebugLoc(CurInst->getDebugLoc());
|
||||
predMap[PREPred] = PREInstr;
|
||||
VN.add(PREInstr, ValNo);
|
||||
++NumGVNPRE;
|
||||
|
Loading…
Reference in New Issue
Block a user