[Beignet] [PATCH V2] GBE: fix one regression caused by uniform analysis.
Zhigang Gong
zhigang.gong at intel.com
Tue May 13 03:41:10 PDT 2014
Some instructions handle simd1 incorrectly. Disable them
currently.
Signed-off-by: Zhigang Gong <zhigang.gong at intel.com>
---
backend/src/ir/liveness.cpp | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/backend/src/ir/liveness.cpp b/backend/src/ir/liveness.cpp
index 3469a20..8edf56e 100644
--- a/backend/src/ir/liveness.cpp
+++ b/backend/src/ir/liveness.cpp
@@ -76,10 +76,14 @@ namespace ir {
// A destination is a killed value
for (uint32_t dstID = 0; dstID < dstNum; ++dstID) {
const Register reg = insn.getDst(dstID);
+ int opCode = insn.getOpcode();
if (uniform &&
fn.getRegisterFamily(reg) != ir::FAMILY_QWORD &&
!info.bb.definedPhiRegs.contains(reg) &&
- insn.getOpcode() != ir::OP_ATOMIC &&
+ opCode != ir::OP_ATOMIC &&
+ opCode != ir::OP_MUL_HI &&
+ opCode != ir::OP_HADD &&
+ opCode != ir::OP_RHADD &&
(dstNum == 1 || insn.getOpcode() != ir::OP_LOAD)
)
fn.setRegisterUniform(reg, true);
--
1.8.3.2
More information about the Beignet
mailing list