1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00
llvm-mirror/tools/llvm-mca
Matt Davis dc12e39aed [llvm-mca] Delay calculation of Cycles per Resources, separate the cycles and resource quantities.
Summary:
This patch removes the storing of accumulated floating point data 
within the llvm-mca library.

This patch splits-up the two quantities: cycles and number of resource units.
By splitting-up these two quantities, we delay the calculation of "cycles per resource unit"
until that value is read, reducing the chance of accumulating floating point error. 

I considered using the APFloat, but after measuring performance, for a large (many iteration)
sample, I decided to go with this faster solution.

Reviewers: andreadb, courbet, RKSimon

Reviewed By: andreadb

Subscribers: llvm-commits, javed.absar, tschuett, gbedwell

Differential Revision: https://reviews.llvm.org/D51903

llvm-svn: 341980
2018-09-11 18:47:48 +00:00
..
include [llvm-mca] Delay calculation of Cycles per Resources, separate the cycles and resource quantities. 2018-09-11 18:47:48 +00:00
lib [llvm-mca] Delay calculation of Cycles per Resources, separate the cycles and resource quantities. 2018-09-11 18:47:48 +00:00
Views [llvm-mca] Delay calculation of Cycles per Resources, separate the cycles and resource quantities. 2018-09-11 18:47:48 +00:00
CMakeLists.txt [llvm-mca] Introduce the llvm-mca library and organize the directory accordingly. NFC. 2018-08-27 17:16:32 +00:00
CodeRegion.cpp [llvm-mca] Add the ability to mark regions of code for analysis (PR36875) 2018-04-09 16:39:52 +00:00
CodeRegion.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
llvm-mca.cpp [llvm-mca] Don't disable the SummaryView if flag -all-stats is false. 2018-08-29 17:40:04 +00:00
LLVMBuild.txt
PipelinePrinter.cpp [llvm-mca] Move views and stats into a Views subdir. NFC. 2018-08-24 20:24:53 +00:00
PipelinePrinter.h [llvm-mca] Move views and stats into a Views subdir. NFC. 2018-08-24 20:24:53 +00:00