Commit 757600bc authored by Andrea Di Biagio's avatar Andrea Di Biagio
Browse files

[llvm-mca] Correctly update the CyclesLeft of a register read in the presence...

[llvm-mca] Correctly update the CyclesLeft of a register read in the presence of partial register updates.

This patch fixe the logic in ReadState::cycleEvent(). That method was not
correctly updating field `TotalCycles`.

Added extra code comments in class ReadState to better describe each field.

llvm-svn: 334028
parent c581e567
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment