This is an archive of the discontinued LLVM Phabricator instance.

[SelectionDAG] Dump the DAG after legalizing vector ops and after the second type legalization
ClosedPublic

Authored by craig.topper on Feb 4 2017, 4:47 PM.

Details

Summary

With -debug, we aren't dumping the DAG after legalizing vector ops. In particular, on X86 with AVX1 only, we don't dump the DAG after we split 256-bit integer ops into pairs of 128-bit ADDs since this occurs during vector legalization.

I'm only dumping if the legalize vector ops changes something since we don't print anything during legalize vector ops. So this dump shows up right after the first type-legalization dump happens. So if nothing changed this second dump is unnecessary.

Having said that though, I think we should probably fix legalize vector ops to log what its doing.

Diff Detail

Repository
rL LLVM

Event Timeline

craig.topper created this revision.Feb 4 2017, 4:47 PM
RKSimon accepted this revision.Feb 9 2017, 5:33 AM

LGTM - thanks!

This revision is now accepted and ready to land.Feb 9 2017, 5:33 AM
This revision was automatically updated to reflect the committed changes.