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.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
(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.)
test/CodeGen/ARM/ldrcppic.ll | ||
---|---|---|
2 | Probably worth adding a comment to explain this RUN line, since it's a bit unusual. | |
48 | Please clean up the testcase to get rid of unnecessary attributes/branches/etc. |
test/CodeGen/ARM/ldrcppic.ll | ||
---|---|---|
2 | I was hoping for a comment that would directly answer the question "why is this testcase using -filetype=obj, instead of emitting assembly"? |
Probably worth adding a comment to explain this RUN line, since it's a bit unusual.