This is an archive of the discontinued LLVM Phabricator instance.

[DAG] FoldConstantVectorArithmetic - remove SDNodeFlags argument
ClosedPublic

Authored by RKSimon on Nov 5 2021, 6:28 AM.

Details

Summary

Another minor step towards merging FoldConstantVectorArithmetic into FoldConstantArithmetic.

We don't use SDNodeFlags in any constant folding inside DAG, so passing the Flags is a waste of time - an alternative would be to wire up FoldConstantArithmetic to take SDNodeFlags just-in-case we someday start using it, but we don't have any way to test it and I'd prefer to avoid dead code.

Diff Detail

Event Timeline

RKSimon created this revision.Nov 5 2021, 6:28 AM
RKSimon requested review of this revision.Nov 5 2021, 6:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 5 2021, 6:28 AM
lebedev.ri accepted this revision.Nov 5 2021, 7:18 AM

Seems pretty NFCI to me.

This revision is now accepted and ready to land.Nov 5 2021, 7:18 AM
This revision was landed with ongoing or failed builds.Nov 5 2021, 7:36 AM
This revision was automatically updated to reflect the committed changes.