Displaying 8 results from an estimated 8 matches for "hasallowcontract".
2018 Aug 20
3
Condition code in DAGCombiner::visitFADDForFMACombine?
I'm curious why the condition to fuse is this:
// Floating-point multiply-add with intermediate rounding.
bool HasFMAD = (LegalOperations && TLI.isOperationLegal(ISD::FMAD, VT));
static bool isContractable(SDNode *N) {
SDNodeFlags F = N->getFlags();
return F.hasAllowContract() || F.hasAllowReassociation();
}
bool CanFuse = Options.UnsafeFPMath || isContractable(N);
bool AllowFusionGlobally = (Options.AllowFPOpFusion == FPOpFusion::Fast ||
CanFuse || HasFMAD);
// If the addition is not contractable, do not combine.
if (!AllowFusionGlobally && !isContractable(N)...
2018 Aug 22
2
Condition code in DAGCombiner::visitFADDForFMACombine?
...:
>
> // Floating-point multiply-add with intermediate rounding.
> bool HasFMAD = (LegalOperations &&
> TLI.isOperationLegal(ISD::FMAD, VT));
>
> static bool isContractable(SDNode *N) {
> SDNodeFlags F = N->getFlags();
> return F.hasAllowContract() || F.hasAllowReassociation();
> }
>
> bool CanFuse = Options.UnsafeFPMath || isContractable(N);
> bool AllowFusionGlobally = (Options.AllowFPOpFusion ==
> FPOpFusion::Fast || CanFuse || HasFMAD);
> // If the addition is not contractable, do not combine.
>...
2018 Aug 22
4
Condition code in DAGCombiner::visitFADDForFMACombine?
...ediate rounding.
> > bool HasFMAD = (LegalOperations &&
> > TLI.isOperationLegal(ISD::FMAD, VT));
> >
> > static bool isContractable(SDNode *N) {
> > SDNodeFlags F = N->getFlags();
> > return F.hasAllowContract() || F.hasAllowReassociation();
> > }
> >
> > bool CanFuse = Options.UnsafeFPMath || isContractable(N);
> > bool AllowFusionGlobally = (Options.AllowFPOpFusion ==
> > FPOpFusion::Fast || CanFuse || HasFMAD);
> > /...
2018 Aug 22
2
Condition code in DAGCombiner::visitFADDForFMACombine?
...D = (LegalOperations &&
> > > TLI.isOperationLegal(ISD::FMAD, VT));
> > >
> > > static bool isContractable(SDNode *N) {
> > > SDNodeFlags F = N->getFlags();
> > > return F.hasAllowContract() ||
> F.hasAllowReassociation();
> > > }
> > >
> > > bool CanFuse = Options.UnsafeFPMath || isContractable(N);
> > > bool AllowFusionGlobally = (Options.AllowFPOpFusion ==
> > > FP...
2018 Aug 23
2
Condition code in DAGCombiner::visitFADDForFMACombine?
...ool HasFMAD = (LegalOperations &&
>>> > TLI.isOperationLegal(ISD::FMAD, VT));
>>> >
>>> > static bool isContractable(SDNode *N) {
>>> > SDNodeFlags F = N->getFlags();
>>> > return F.hasAllowContract() || F.hasAllowReassociation();
>>> > }
>>> >
>>> > bool CanFuse = Options.UnsafeFPMath || isContractable(N);
>>> > bool AllowFusionGlobally = (Options.AllowFPOpFusion ==
>>> > FPOpFusion::Fast || C...
2018 Aug 23
2
Condition code in DAGCombiner::visitFADDForFMACombine?
...Operations &&
>>>> > TLI.isOperationLegal(ISD::FMAD, VT));
>>>> >
>>>> > static bool isContractable(SDNode *N) {
>>>> > SDNodeFlags F = N->getFlags();
>>>> > return F.hasAllowContract() || F.hasAllowReassociation();
>>>> > }
>>>> >
>>>> > bool CanFuse = Options.UnsafeFPMath || isContractable(N);
>>>> > bool AllowFusionGlobally = (Options.AllowFPOpFusion ==
>>>> > F...
2018 Aug 23
3
Condition code in DAGCombiner::visitFADDForFMACombine?
...;
>>>>> > TLI.isOperationLegal(ISD::FMAD, VT));
>>>>> >
>>>>> > static bool isContractable(SDNode *N) {
>>>>> > SDNodeFlags F = N->getFlags();
>>>>> > return F.hasAllowContract() || F.hasAllowReassociation();
>>>>> > }
>>>>> >
>>>>> > bool CanFuse = Options.UnsafeFPMath || isContractable(N);
>>>>> > bool AllowFusionGlobally = (Options.AllowFPOpFusion ==
>>>>...
2018 Aug 23
2
Condition code in DAGCombiner::visitFADDForFMACombine?
...D::FMAD, VT));
>>>> >
>>>> > static bool isContractable(SDNode *N) {
>>>> > SDNodeFlags F = N->getFlags();
>>>> > return F.hasAllowContract() ||
>>>> F.hasAllowReassociation();
>>>> > }
>>>> >
>>>> > bool CanFuse = Options.UnsafeFPMath ||
>>>> isContra...