LDRcp should be deleted when the dest register is dead in register coalescing. Without MemOp, dead LDRcp will cause dead constant pool value which references to non-existing label.
(It's customary to mention the target name in the title for patches which only touch one target, e.g. "[ARM] Add MemOp into LDRcp to enable removing", to help people quickly sort through llvm-commits.)
|1 ↗||(On Diff #172813)|
Probably worth adding a comment to explain this RUN line, since it's a bit unusual.
|47 ↗||(On Diff #172813)|
Please clean up the testcase to get rid of unnecessary attributes/branches/etc.