Created attachment 18814 [details] reduced IR test case After r308025, SelectionDAG crashes while compiling the file: https://github.com/xiph/speex/blob/master/libspeex/testenc.c (Possibly some older version of it, I haven't checked...) I'm attaching a minimized test case that pretty clearly shows the bug. It seems specific to O0 (optnone attribute is applied). Because this is blocking even unoptimized builds I'm going to revert the patch while it gets investigated.
*** This bug has been marked as a duplicate of bug 32515 ***