Skip to content

Commit 5b4569c

Browse files
vkuzyakiigcbot
authored andcommitted
[Autobackout][FuncReg]Revert of change: 251d898
Add an assertion in GenXAggregatePseudoLowering Add an assertion in GenXAggregatePseudoLowering that there are really no aggregates in split instructions after the pass.
1 parent 319a46e commit 5b4569c

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

IGC/VectorCompiler/lib/GenXCodeGen/GenXAggregatePseudoLowering.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -282,13 +282,8 @@ class SplitInstCreator : public InstVisitor<SplitInstCreator, Instruction *> {
282282
return nullptr;
283283
}
284284

285-
Instruction *create(Instruction &I) {
286-
auto *NewInst = visit(I);
287-
IGC_ASSERT_MESSAGE(!hasAggregate(*NewInst),
288-
"split instruction must not have aggregate as an "
289-
"operand or a return value");
290-
return NewInst;
291-
}
285+
// Just an alias to visit with a bit more suitable name.
286+
Instruction *create(Instruction &I) { return visit(I); }
292287

293288
Instruction *visitSelectInst(SelectInst &Inst) const {
294289
IGC_ASSERT_MESSAGE(NewOps.size() == 3, "select must have 3 operands");

0 commit comments

Comments
 (0)