[GlobalISel]
Do not pass nullptr in MachineOptimizationRemark constructor, as MBB pointer is used in DiagnosticInfoMIROptimization constructor and that results in nullptr access.
Details
Details
- Reviewers
aditya_nandakumar arsenm qcolombet
Diff Detail
Diff Detail
Event Timeline
Comment Actions
I discovered this while creating basic blocks in custom instruction selection for a downstream back-end. I don't know how to write that scenario in a test.
Comment Actions
Pointing at the entry block is probably not useful, probably should just go with the function for the report