diff options
author | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2018-03-29 14:26:56 +0000 |
---|---|---|
committer | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2018-03-29 14:26:56 +0000 |
commit | 0a837ef6b13e34abb785c720c4fa3d79be45db0f (patch) | |
tree | 6100e362adef63da303999b61539b272ffc21bbb /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | fe1d346f996f9a7df76073e0cff2ebefdebc18cf (diff) | |
download | bcm5719-llvm-0a837ef6b13e34abb785c720c4fa3d79be45db0f.tar.gz bcm5719-llvm-0a837ef6b13e34abb785c720c4fa3d79be45db0f.zip |
[llvm-mca] Correctly set the ReadAdvance information for register use operands.
The tool was passing the wrong operand index to method
MCSubtargetInfo::getReadAdvanceCycles(). That method requires a "UseIdx", and
not the operand index. This was found when testing X86 code where instructions
had a memory folded operand.
This patch fixes the issue and adds test read-advance-1.s to ensure that
the ReadAfterLd (a ReadAdvance of 3cy) information is correctly used.
llvm-svn: 328790
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions