shader: Store type of phi nodes in flags
This is needed because pseudo-instructions where invalidated.
This commit is contained in:
parent
b0d5572abf
commit
514a6b07ee
3 changed files with 11 additions and 2 deletions
|
@ -193,6 +193,10 @@ void Inst::AddPhiOperand(Block* predecessor, const Value& value) {
|
|||
if (!value.IsImmediate()) {
|
||||
Use(value);
|
||||
}
|
||||
if (Flags<IR::Type>() == IR::Type::Void) {
|
||||
// Set the type of the phi node
|
||||
SetFlags<IR::Type>(value.Type());
|
||||
}
|
||||
phi_args.emplace_back(predecessor, value);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue