This tries to fix PR30911
This is an ad-hoc fix suggested by Eli Friedman. The problem might deeper in that the CallResource dependency is not correctly unscheduled. More details in that bug report. It would be nice if someone with more expertise with the SelectionDAG could have a look.