This is an archive of the discontinued LLVM Phabricator instance.

[PPC] Enhance altivec conversion function macros implementation.
ClosedPublic

Authored by jtony on Jun 11 2017, 1:44 PM.

Details

Summary

Add checking for the second parameter of altivec conversion builtin to make sure it is compile-time constant int.

This patch and patch r304205 ([PPC] Make altivec conversion function macros.) together fix PR33212: PPC vec_cst useless at -O0.

Diff Detail

Repository
rL LLVM

Event Timeline

jtony created this revision.Jun 11 2017, 1:44 PM
jtony retitled this revision from [PPC] Check the second parameter of altivec conversion function is literal. to [PPC] Enhance altivec conversion function macros implementation..Jun 12 2017, 6:40 AM
jtony edited the summary of this revision. (Show Details)
jtony added a reviewer: hfinkel.
This revision is now accepted and ready to land.Jun 12 2017, 12:53 PM
echristo accepted this revision.Jun 12 2017, 1:42 PM
This revision was automatically updated to reflect the committed changes.