We may leave behind incorrect dead flags on instructions that are CSE'd. Make
sure we remove the dead flags on these instructions to prevent other incorrect
code motion.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
It's odd nobody has run into this before, but LGTM with minor nits.
lib/CodeGen/MachineCSE.cpp | ||
---|---|---|
279 ↗ | (On Diff #186443) | You could use llvm::enumerate here; maybe more readable. Otherwise, please use an "I < E" loop (http://llvm.org/docs/CodingStandards.html#don-t-evaluate-end-every-time-through-a-loop) . |
test/CodeGen/Thumb/machine-cse-deadreg.mir | ||
1 ↗ | (On Diff #186443) | -verify-machine-instrs |