summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/SIISelLowering.h
diff options
context:
space:
mode:
authorTom Stellard <tstellar@redhat.com>2018-06-13 15:06:37 +0000
committerTom Stellard <tstellar@redhat.com>2018-06-13 15:06:37 +0000
commit264c171f366faca8d42930aa3939e554efd1aa21 (patch)
tree70bb84bf656182911f2deff20f855ef0d4a78e42 /llvm/lib/Target/AMDGPU/SIISelLowering.h
parentc3fabd98d65ce53f722180f2916d9145c78cba47 (diff)
downloadbcm5719-llvm-264c171f366faca8d42930aa3939e554efd1aa21.tar.gz
bcm5719-llvm-264c171f366faca8d42930aa3939e554efd1aa21.zip
AMDGPU: Move isSDNodeSourceOfDivergence() implementation to SITargetLowering
Summary: The code that handles ISD:Register and ISD::CopyFromReg assumes the target is amdgcn, so this is broken on r600. We don't need this analysis on r600 anyway so we can safely move it to SITargetLowering. Reviewers: alex-t, arsenm, nhaehnle Reviewed By: arsenm Subscribers: msearles, kzhuravl, wdng, yaxunl, dstuttard, tpr, t-tye, llvm-commits Differential Revision: https://reviews.llvm.org/D46298 llvm-svn: 334607
Diffstat (limited to 'llvm/lib/Target/AMDGPU/SIISelLowering.h')
-rw-r--r--llvm/lib/Target/AMDGPU/SIISelLowering.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIISelLowering.h b/llvm/lib/Target/AMDGPU/SIISelLowering.h
index 80454e9bb90..db5a1dc9641 100644
--- a/llvm/lib/Target/AMDGPU/SIISelLowering.h
+++ b/llvm/lib/Target/AMDGPU/SIISelLowering.h
@@ -297,6 +297,9 @@ public:
const APInt &DemandedElts,
const SelectionDAG &DAG,
unsigned Depth = 0) const override;
+
+ bool isSDNodeSourceOfDivergence(const SDNode *N,
+ FunctionLoweringInfo *FLI, DivergenceAnalysis *DA) const override;
};
} // End namespace llvm
OpenPOWER on IntegriCloud