OSDN Git Service

DAG: Stop dropping invariant/dereferencable
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 5 Jun 2018 14:52:24 +0000 (14:52 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 5 Jun 2018 14:52:24 +0000 (14:52 +0000)
commite5fc6740900e3936b70a58ea80a1acbac4fe35f0
tree861c905177b4aa5b17a8ff94f7e524aea35f89ef
parentebe751f9808222af05903ec6a81182f6d6131517
DAG: Stop dropping invariant/dereferencable

When legalizing illegal FP load results, this was
for some reason dropping the invariant and dereferencable
memory flags. There doesn't seem to be any reason for this,
and the equivalent isn't done for integer loads.

Fixes an issue in a future AMDGPU commit where some identical
loads fail to merge because one of the loads ends up
dropping the flags.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@334020 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
test/CodeGen/AMDGPU/legalize-fp-load-invariant.ll [new file with mode: 0644]