HomePhabricator

[NFC] Refactor memory ops cluster method

Authored by qiucf on Jan 11 2020, 9:10 PM.

Description

[NFC] Refactor memory ops cluster method

Current implementation of BaseMemOpsClusterMutation is a little bit
obscure. This patch directly uses a map from store chain ID to set of
memory instrs to make it simpler, so that future improvements are easier
to read, update and review.

Reviewed By: evandro

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

Details