projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add target hook for whether it is profitable to reduce load widths
[oota-llvm.git]
/
lib
/
Target
/
R600
/
AMDGPUISelLowering.h
diff --git
a/lib/Target/R600/AMDGPUISelLowering.h
b/lib/Target/R600/AMDGPUISelLowering.h
index 36b4ee6b1d6e76456b36e4546487fb25ac2af0a0..7386eaea73d2eb00c68c3b23f9e61a5b87807d41 100644
(file)
--- a/
lib/Target/R600/AMDGPUISelLowering.h
+++ b/
lib/Target/R600/AMDGPUISelLowering.h
@@
-124,6
+124,9
@@
public:
bool isFPImmLegal(const APFloat &Imm, EVT VT) const override;
bool ShouldShrinkFPConstant(EVT VT) const override;
bool isFPImmLegal(const APFloat &Imm, EVT VT) const override;
bool ShouldShrinkFPConstant(EVT VT) const override;
+ bool shouldReduceLoadWidth(SDNode *Load,
+ ISD::LoadExtType ExtType,
+ EVT ExtVT) const override;
bool isLoadBitCastBeneficial(EVT, EVT) const override;
SDValue LowerReturn(SDValue Chain, CallingConv::ID CallConv,
bool isLoadBitCastBeneficial(EVT, EVT) const override;
SDValue LowerReturn(SDValue Chain, CallingConv::ID CallConv,