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)
commit191bc71541a69cc872a8f313d00b96268b12b0ae
tree230a386bfc67cacc17e5319127b2dfb7ac458f2b
parente4ff0bd401ba3e7c61b5a913e9e08fa68bee69b1
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.

llvm-svn: 334020
llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
llvm/test/CodeGen/AMDGPU/legalize-fp-load-invariant.ll [new file with mode: 0644]