[llvm-mca] Remove field HasReadAdvanceEntries from class ReadDescriptor.
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Fri, 29 Jun 2018 14:24:46 +0000 (14:24 +0000)
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Fri, 29 Jun 2018 14:24:46 +0000 (14:24 +0000)
commitdbaafe6766bf719288e79f468893547c9a12639a
tree6464cf4ccaf7538e36650e1f9a3b968219f19b61
parent2a03d4296a5e462855dd43c9808f406a4f1cea16
[llvm-mca] Remove field HasReadAdvanceEntries from class ReadDescriptor.

This simplifies the logic that updates RAW dependencies in the DispatchStage.
There is no advantage in storing that flag in the ReadDescriptor; we should
simply rely on the call to `STI.getReadAdvanceCycles()` to obtain the
ReadAdvance cycles. If there are no read-advance entries, then method
`getReadAdvanceCycles()` quickly returns 0.

No functional change intended.

llvm-svn: 335977
llvm/tools/llvm-mca/DispatchStage.cpp
llvm/tools/llvm-mca/InstrBuilder.cpp
llvm/tools/llvm-mca/Instruction.h