[MCA][InstrBuilder] Always check for implicit uses of resource units (PR50725).
authorAndrea Di Biagio <andrea.dibiagio@sony.com>
Wed, 16 Jun 2021 13:39:14 +0000 (14:39 +0100)
committerAndrea Di Biagio <andrea.dibiagio@sony.com>
Wed, 16 Jun 2021 13:51:12 +0000 (14:51 +0100)
commit70b37f4c03cd189c94167dc22d9f5303c8773092
treedb47a8944264e5b32e0c29e57c60b6010f68699f
parenta1678987d982ef3d29ad4eacd4d4c48641494857
[MCA][InstrBuilder] Always check for implicit uses of resource units (PR50725).

When instructions are issued to the underlying pipeline resources, the
mca::ResourceManager should also check for the presence of extra uses induced by
the explicit consumption of multiple partially overlapping group resources.

Fixes PR50725
llvm/include/llvm/MCA/Instruction.h
llvm/lib/MCA/HardwareUnits/ResourceManager.cpp
llvm/lib/MCA/InstrBuilder.cpp
llvm/test/tools/llvm-mca/X86/SkylakeClient/PR50725.s [new file with mode: 0644]