This is an archive of the discontinued LLVM Phabricator instance.

[DAGCombiner] Add support for TRUNCATE + FP_EXTEND vector constant folding
ClosedPublic

Authored by RKSimon on Mar 24 2015, 3:30 PM.

Details

Summary

This patch adds supports for the vector constant folding of TRUNCATE and FP_EXTEND instructions and tidies up the SINT_TO_FP and UINT_TO_FP instructions to match.

It also moves the vector constant folding for the FNEG and FABS instructions to use the DAG.getNode() functionality like the other unary instructions.

Diff Detail

Repository
rL LLVM

Event Timeline

RKSimon updated this revision to Diff 22608.Mar 24 2015, 3:30 PM
RKSimon retitled this revision from to [DAGCombiner] Add support for TRUNCATE + FP_EXTEND vector constant folding.
RKSimon updated this object.
RKSimon edited the test plan for this revision. (Show Details)
RKSimon added reviewers: qcolombet, hfinkel, andreadb.
RKSimon set the repository for this revision to rL LLVM.
RKSimon added a subscriber: Unknown Object (MLST).
qcolombet accepted this revision.Mar 24 2015, 4:40 PM
qcolombet edited edge metadata.

Nice refactoring Simon!

LGTM.

Thanks,
-Quentin

This revision is now accepted and ready to land.Mar 24 2015, 4:40 PM
This revision was automatically updated to reflect the committed changes.