This is an archive of the discontinued LLVM Phabricator instance.

[OpenCL] Remove redundant test for OpenCL header file
ClosedPublic

Authored by yaxunl on Nov 4 2016, 10:21 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

yaxunl updated this revision to Diff 76922.Nov 4 2016, 10:21 AM
yaxunl retitled this revision from to [OpenCL] Remove redundant test for OpenCL header file.
yaxunl updated this object.
yaxunl added a reviewer: Anastasia.
yaxunl added subscribers: cfe-commits, rsmith.
Anastasia added inline comments.Nov 4 2016, 11:28 AM
test/Headers/opencl-c-header.cl
48 ↗(On Diff #76922)

Considering that the above change removes around 30 parse times of CL header already, would it makes sense to keep this bit checking the modules for different versions are regenerated while for the same version are kept? This adds only 2 extra parsing of the header as I can see.

Are we sure such bits are covered by testing elsewhere?

yaxunl updated this revision to Diff 76932.Nov 4 2016, 12:40 PM

Revised as Anastasia suggested.

Anastasia edited edge metadata.Nov 5 2016, 6:16 AM

LGTM! Thanks! Do you know the runtime of this test now?

Anastasia accepted this revision.Nov 5 2016, 6:16 AM
Anastasia edited edge metadata.
This revision is now accepted and ready to land.Nov 5 2016, 6:16 AM
yaxunl added a comment.Nov 7 2016, 8:01 AM

LGTM! Thanks! Do you know the runtime of this test now?

It takes about 1s in releaser build and 20s in debug build on my machine.

This revision was automatically updated to reflect the committed changes.

Cool! Thanks!