Not only print the number of operations for the each location (show only top-k), but also a breakdown of how many operations of each kind.
Depends On D109672
Differential D109673
[mlir] print-op-stats: Print op counts for top-k locs springerm on Sep 12 2021, 11:15 PM. Authored by
Details
Not only print the number of operations for the each location (show only top-k), but also a breakdown of how many operations of each kind. Depends On D109672
Diff Detail
Unit Tests
Event TimelineComment Actions Example output: Top locations by number of operations: -------------------------------------- ...nrolled-tensor-transfer-ops.mlir:1 offset ":67:17) , 7169 builtin.unrealized_conversion_cast , 1280 llvm.add , 512 llvm.bitcast , 256 llvm.extractvalue , 512 llvm.getelementptr , 256 llvm.insertvalue , 256 llvm.intr.masked.load , 256 llvm.mlir.constant , 256 llvm.mul , 256 scf.if , 256 scf.yield , 512 std.addi , 256 std.cmpi , 512 std.constant , 513 std.index_cast , 512 std.splat , 768 ...nrolled-tensor-transfer-ops.mlir:1 offset ":39:14) , 7168 builtin.unrealized_conversion_cast , 1280 llvm.add , 512 llvm.bitcast , 256 llvm.extractvalue , 512 llvm.getelementptr , 256 llvm.insertvalue , 256 llvm.intr.masked.load , 256 llvm.mlir.constant , 256 llvm.mul , 256 scf.if , 256 scf.yield , 512 std.addi , 256 std.cmpi , 512 std.constant , 512 std.index_cast , 512 std.splat , 768 ...nrolled-tensor-transfer-ops.mlir:1 offset ":50:14) , 7168 builtin.unrealized_conversion_cast , 1280 llvm.add , 512 llvm.bitcast , 256 llvm.extractvalue , 512 [...]
|
Isn't this just count per operation name? Not sure why this is marked as histogram