OSDN Git Service

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)
commit1e3c4790abc355a619d0c778bfd5f599e5ec2df4
tree7abe0110242dcb4087fc5efb693ea730ccd7f1f8
parentb1b624d08a35e0efbead95a4072f613b788b9cbb
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@354295 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIInstrInfo.cpp
lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
test/CodeGen/AMDGPU/ds-combine-with-dependence.ll [new file with mode: 0644]