AMDGPU: Use MachineInstr::mayAlias to replace areMemAccessesTriviallyDisjoint in...
authorChangpeng Fang <changpeng.fang@gmail.com>
Mon, 18 Feb 2019 23:00:26 +0000 (23:00 +0000)
committerChangpeng Fang <changpeng.fang@gmail.com>
Mon, 18 Feb 2019 23:00:26 +0000 (23:00 +0000)
commit4cabf6d3b52b9f6648c0c3e09ac87483e6be76cc
treeb3cafb516114d4de8b40950ac69e00345ef1c8f6
parentd1511a4bc734050899bd103cfced2a3dd9be2481
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
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
llvm/test/CodeGen/AMDGPU/ds-combine-with-dependence.ll [new file with mode: 0644]