summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2016-08-27 19:09:43 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2016-08-27 19:09:43 +0000
commit38814fa2fd964623658a860914b6222e309a2bf9 (patch)
treea9b708e919d37b27e2f143b1efdddf89465cff69 /llvm/lib/Target
parent6943aa306ee5f27ed3bdd95daa863bed99f2a51b (diff)
downloadbcm5719-llvm-38814fa2fd964623658a860914b6222e309a2bf9.tar.gz
bcm5719-llvm-38814fa2fd964623658a860914b6222e309a2bf9.zip
AMDGPU/R600: Enable Load combine
Fix and improve tests Differential Revision: https://reviews.llvm.org/D23899 llvm-svn: 279925
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/AMDGPU/R600ISelLowering.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/R600ISelLowering.cpp b/llvm/lib/Target/AMDGPU/R600ISelLowering.cpp
index 481a6ac99e5..d7d40a83fa6 100644
--- a/llvm/lib/Target/AMDGPU/R600ISelLowering.cpp
+++ b/llvm/lib/Target/AMDGPU/R600ISelLowering.cpp
@@ -198,6 +198,7 @@ R600TargetLowering::R600TargetLowering(const TargetMachine &TM,
setTargetDAGCombine(ISD::EXTRACT_VECTOR_ELT);
setTargetDAGCombine(ISD::SELECT_CC);
setTargetDAGCombine(ISD::INSERT_VECTOR_ELT);
+ setTargetDAGCombine(ISD::LOAD);
}
const R600Subtarget *R600TargetLowering::getSubtarget() const {
OpenPOWER on IntegriCloud