Page MenuHomePhabricator

[DAGCombiner] Vector constant folding for comparisons
ClosedPublic

Authored by RKSimon on Nov 14 2015, 1:19 PM.

Details

Summary

This patch adds support for vector constant folding of integer/float comparisons.

This requires FoldConstantVectorArithmetic to support scalar constant operands (in this case ISD::CONDCASE). In future we should be able to support other scalar constant types as necessary (and possibly start calling FoldConstantVectorArithmetic for all node creations).

Diff Detail

Repository
rL LLVM

Event Timeline

RKSimon updated this revision to Diff 40218.Nov 14 2015, 1:19 PM
RKSimon retitled this revision from to [DAGCombiner] Vector constant folding for comparisons.
RKSimon updated this object.
RKSimon set the repository for this revision to rL LLVM.
RKSimon added a subscriber: llvm-commits.
qcolombet accepted this revision.Nov 16 2015, 12:16 PM
qcolombet edited edge metadata.

Hi Simon,

LGTM.

Thanks,
-Quentin

This revision is now accepted and ready to land.Nov 16 2015, 12:16 PM
This revision was automatically updated to reflect the committed changes.