[Scheduling] Improve group algorithm for store cluster
authorQingShan Zhang <qshanz@cn.ibm.com>
Mon, 27 Jul 2020 02:02:40 +0000 (02:02 +0000)
committerQingShan Zhang <qshanz@cn.ibm.com>
Mon, 27 Jul 2020 02:02:40 +0000 (02:02 +0000)
commita6e9f5264c855dfa5dda3c5940ffdaaf22d7e693
tree0392f981ca7d2482cffe2a330025f8147698b748
parent194a4beedd1e09ff0de3710ea431d8d3facd59e1
[Scheduling] Improve group algorithm for store cluster

Store Addr and Store Addr+8 are clusterable pair. They have memory(ctrl) dependency on different loads.
Current implementation will put these two stores into different group and miss to cluster them.

Reviewed By: evandro

Differential Revision: https://reviews.llvm.org/D84139
llvm/lib/CodeGen/MachineScheduler.cpp
llvm/test/CodeGen/AArch64/aarch64-stp-cluster.ll