summaryrefslogtreecommitdiff
path: root/backend/src/ir/instruction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backend/src/ir/instruction.cpp')
-rw-r--r--backend/src/ir/instruction.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/backend/src/ir/instruction.cpp b/backend/src/ir/instruction.cpp
index 652c1fbf..d9051aba 100644
--- a/backend/src/ir/instruction.cpp
+++ b/backend/src/ir/instruction.cpp
@@ -1461,13 +1461,11 @@ namespace ir {
INLINE bool WorkGroupInstruction::wellFormed(const Function &fn, std::string &whyNot) const {
const RegisterFamily family = getFamily(this->type);
+
if (UNLIKELY(checkSpecialRegForWrite(dst[0], fn, whyNot) == false))
return false;
if (UNLIKELY(checkRegisterData(family, dst[0], fn, whyNot) == false))
return false;
- const Register src0 = fn.getRegister(src, 0);
- if (UNLIKELY(checkRegisterData(family, src0, fn, whyNot) == false))
- return false;
switch (this->workGroupOp) {
case WORKGROUP_OP_ANY: