https://bugs.freedesktop.org/show_bug.cgi?id=90056
--- Comment #13 from Andy Furniss adf.lists@gmail.com --- (In reply to Tom Stellard from comment #12)
(In reply to Andy Furniss from comment #10)
(In reply to Grigori Goronzy from comment #9)
Created attachment 115409 [details] [review] [review] [review] Full shader
That does not help either. Seems to break the SSA somehow. Full shader that triggers the bug attached.
The patch I posted earlier help with the the reduced testcase, but not with the full shader. Both undef incoming values in phi nodes and undef branch conditions cause problems in different ways.
With the second patch + valley I get -
valley_x64: LiveVariables.cpp:114: void llvm::LiveVariables::MarkVirtRegAliveInBlock(llvm::LiveVariables::VarInfo &, llvm::MachineBasicBlock *, llvm::MachineBasicBlock *, std::vector<MachineBasicBlock *> &): Assertion `MBB != &MF->front() && "Can't find reaching def for virtreg"' failed.
Did test with only the patch from comment #8 or did you test with both patches?
Just #8 but I just tried with both and get the same fail.