1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

Preserve line number information.

llvm-svn: 131482
This commit is contained in:
Devang Patel 2011-05-17 20:00:02 +00:00
parent 9a0301219b
commit b7b53e9a24

View File

@ -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;