[IR] move helper function to replace undef constant (elements) with fixed constants
This is the NFC part of D69519. We had this functionality locally in instcombine, but it can be used elsewhere, so hoisting it to Constant class.
Loading
Please sign in to comment