Add a check that the layout predecessor of a block is an actual CFG
predecssor of the block as well. No current code fails this check, but
upcoming patches can trigger this, and it makes sense to separate it
out.
Details
Details
- Reviewers
davidxl
Diff Detail
Diff Detail
Event Timeline
lib/CodeGen/TailDuplicator.cpp | ||
---|---|---|
817 | Can you update and elaborate on the comment for this? |
Comment Actions
Add a comment above the check.
lib/CodeGen/TailDuplicator.cpp | ||
---|---|---|
817 | The comment now matches the code. "except for the prior block, which falls through unconditionally, move the contents of this block into the prior block." But I'll add a comment to this line to the effect of "Layout preds are not always CFG preds", above this line. |
Can you update and elaborate on the comment for this?