HomePhabricator

AMDGPU: Use MachineInstr::mayAlias to replace areMemAccessesTriviallyDisjoint…

Authored by cfang on Feb 18 2019, 3:00 PM.

Description

AMDGPU: Use MachineInstr::mayAlias to replace areMemAccessesTriviallyDisjoint in LoadStoreOptimizer pass.

Summary:

This is to fix a memory dependence bug in LoadStoreOptimizer.

Reviewers:

arsenm, rampitec

Differential Revision:

https://reviews.llvm.org/D58295

llvm-svn: 354295