Attempt to reduce the mess (276 lines of code in this function)
by putting the functionality of emitting cascaded selects into
a separate function and by extracting the common piece of code
(creating PHIs in the sink block).
Details
Diff Detail
Event Timeline
Few minor comments. below.
If I understood the code well, this is a non functional change, is that correct?
| lib/Target/X86/X86ISelLowering.cpp | ||
|---|---|---|
| 25564 | How about adding the "static" keyword? | |
| 25577–25584 | You would need this comment before line 25608 above, as it explains the map define at that line. | |
| 25692 | [Style]: Any reason you break the comment line before reaching 80 characters? | |
| 25749 | Calling this helper function for one CMOV is not need (you will not be using half of the code that exist in the helper function), and it is even confusing. | |
| 25752 | [Style]: Please, use capital letter, "The second ..." | |
| 25896–25897 | You may simply call: ThisMBB->erase(MIItBegin, MIItEnd); | |
How about adding the "static" keyword?