OSDN Git Service

Correct NumLoads in clustering
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Fri, 24 Jan 2020 20:02:54 +0000 (12:02 -0800)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Fri, 24 Jan 2020 20:45:28 +0000 (12:45 -0800)
commitbe8e38cbd9785d4f4023b88150d14bd815265eef
treec6bc81d3033cca5ae2f901a4a6f53b5763a0835b
parent9c346464c15c9f42fd641c33ca4c35b31556a661
Correct NumLoads in clustering

Scheduler sends NumLoads argument into shouldClusterMemOps()
one less the actual cluster length. So for 2 instructions
it will pass just 1. Correct this number.

This is NFC for in tree targets.

Differential Revision: https://reviews.llvm.org/D73292
llvm/include/llvm/CodeGen/TargetInstrInfo.h
llvm/lib/CodeGen/MachineScheduler.cpp
llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp