summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2018-03-29 14:26:56 +0000
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2018-03-29 14:26:56 +0000
commit0a837ef6b13e34abb785c720c4fa3d79be45db0f (patch)
tree6100e362adef63da303999b61539b272ffc21bbb /clang/lib/CodeGen/CodeGenModule.cpp
parentfe1d346f996f9a7df76073e0cff2ebefdebc18cf (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud