OSDN Git Service

[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)
commit4e9529bf924da3fe4055de912de25c4612b296d9
treed54a0b18b3f0b04f469e00a06fe36347181c612f
parent6882f03fec66bd1fbd764e7a6466ce727b826d8b
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@335977 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-mca/DispatchStage.cpp
tools/llvm-mca/InstrBuilder.cpp
tools/llvm-mca/Instruction.h