<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/56133>56133</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
LiveVariables.cpp:129 assert failure when using both ASan and LibFuzzer instrumentation with -fast-isel
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
chandlerc
</td>
</tr>
</table>
<pre>
```
> ./llc -fast-isel -o /dev/null reduced.2.ll
llc: external/llvm-project/llvm/lib/CodeGen/LiveVariables.cpp:129: void llvm::LiveVariables::HandleVirtRegUse(llvm::Register, llvm::MachineBasicBlock *, llvm::MachineInstr &): Assertion `MRI->getVRegDef(Reg) && "Register use before def!"' failed.
```
Reduced IR test case: https://gist.github.com/chandlerc/7346e831145d0c00723be7e18c07b254
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx1Ustu2zAQ_BrqQligKEuyDzrIcd0aSC4umjsfK4ktTRkk5bT5-q5kO3GCFiDIJfc1M1w56D81Kdl1sS1hDcm_0JTwnbWKLloR4sIEsHQxUHzUcMbdjdZSD3pUoFOeWnvJxAySNxR-R_BO2LnG-bg4-eEnqHi9ToeRuD8MGr6CQ-vRnOFZeCOkhZCq0wmrZHw91ToPRtM5LUdgzYfIy9M34bSFZ-PjAbofAQhfvcfjkwmIhvCHuypPQvXGwUYEozZ2UL-QWfPPkL0L0aO3JBc4TQjgoxkcRbmeDvsFitVBfMY-W2ixNRoYesko8eA3BHQMQCW0gweqp9AMnYRXtBXGoopX7T99xbwfLkLT_YFGCJEqgSwRTB_jaRaB73BNbdLOxH6UqRommVU_S-MV2lW-LGGVZ9my0EwxVvFcQgXZSrFK8mKZ6DrX63wtkmiihfo_X0LFLMAMekQmLz04ZGZcR-UQe9p8F45iV_po5G58fUXeZpJwPIKLYhbuBSHezVUyelt_ZnJH4jYyHwfJhDDiAPBdUWZ5nvS1amHFNc-qKisrrnW7brOiEvlSllKAEokVEmyoSbEhxTYxNWecs5JnrGDLokhzhYEgCs01VKrQZMngiCTTqXE6-C7x9YxBjl1Ap0W1w7sTZTGdA7jVF2PsB1-__UAyA65ntH8BohcW0g">