[Beignet] [PATCH 5/7] Backend: Add debug info to BRA instruction.
junyan.he at inbox.com
junyan.he at inbox.com
Thu Dec 17 01:35:56 PST 2015
From: Junyan He <junyan.he at linux.intel.com>
Signed-off-by: Junyan He <junyan.he at linux.intel.com>
---
backend/src/ir/function.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/backend/src/ir/function.cpp b/backend/src/ir/function.cpp
index 00fe97c..27ec78f 100644
--- a/backend/src/ir/function.cpp
+++ b/backend/src/ir/function.cpp
@@ -107,10 +107,12 @@ namespace ir {
// Insert the patched branch instruction
if (bra.isPredicated() == true) {
- const Instruction newBra = BRA(newIndex, bra.getPredicateIndex());
+ Instruction newBra = BRA(newIndex, bra.getPredicateIndex());
+ newBra.DBGInfo = insn.DBGInfo;
newBra.replace(&insn);
} else {
- const Instruction newBra = BRA(newIndex);
+ Instruction newBra = BRA(newIndex);
+ newBra.DBGInfo = insn.DBGInfo;
newBra.replace(&insn);
}
});
--
1.9.1
More information about the Beignet
mailing list