File tree Expand file tree Collapse file tree 1 file changed +17
-24
lines changed Expand file tree Collapse file tree 1 file changed +17
-24
lines changed Original file line number Diff line number Diff line change @@ -782,34 +782,27 @@ bool AMDGPUTargetLowering::isCheapToSpeculateCtlz() const {
782
782
return true ;
783
783
}
784
784
785
- bool AMDGPUTargetLowering::isSDNodeAlwaysUniform (const SDNode * N) const {
785
+ bool AMDGPUTargetLowering::isSDNodeAlwaysUniform (const SDNode *N) const {
786
786
switch (N->getOpcode ()) {
787
- default :
788
- return false ;
789
- case ISD::EntryToken:
790
- case ISD::TokenFactor:
787
+ case ISD::EntryToken:
788
+ case ISD::TokenFactor:
789
+ return true ;
790
+ case ISD::INTRINSIC_WO_CHAIN: {
791
+ unsigned IntrID = cast<ConstantSDNode>(N->getOperand (0 ))->getZExtValue ();
792
+ switch (IntrID) {
793
+ case Intrinsic::amdgcn_readfirstlane:
794
+ case Intrinsic::amdgcn_readlane:
791
795
return true ;
792
- case ISD::INTRINSIC_WO_CHAIN:
793
- {
794
- unsigned IntrID = cast<ConstantSDNode>(N->getOperand (0 ))->getZExtValue ();
795
- switch (IntrID) {
796
- default :
797
- return false ;
798
- case Intrinsic::amdgcn_readfirstlane:
799
- case Intrinsic::amdgcn_readlane:
800
- return true ;
801
- }
802
796
}
803
- break ;
804
- case ISD::LOAD:
805
- {
806
- if (cast<LoadSDNode>(N)->getMemOperand ()->getAddrSpace () ==
807
- AMDGPUAS::CONSTANT_ADDRESS_32BIT)
808
- return true ;
809
- return false ;
810
- }
811
- break ;
797
+ return false ;
798
+ }
799
+ case ISD::LOAD:
800
+ if (cast<LoadSDNode>(N)->getMemOperand ()->getAddrSpace () ==
801
+ AMDGPUAS::CONSTANT_ADDRESS_32BIT)
802
+ return true ;
803
+ return false ;
812
804
}
805
+ return false ;
813
806
}
814
807
815
808
SDValue AMDGPUTargetLowering::getNegatedExpression (
You can’t perform that action at this time.
0 commit comments