[GMR] Add a flag to enable GlobalsModRef in the normal compilation
authorChandler Carruth <chandlerc@gmail.com>
Wed, 22 Jul 2015 11:57:28 +0000 (11:57 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 22 Jul 2015 11:57:28 +0000 (11:57 +0000)
commite9ea5a66f2d0a0dd1795d41a2885cadb359de973
treec958674e19203d48e1f798557f487678ec7c0b4b
parent55dd48c3638db3e2b32e786b6e183b775c38f0f7
[GMR] Add a flag to enable GlobalsModRef in the normal compilation
pipeline.

Even before I started improving its runtime, it was already crazy fast
once the call graph exists, and if we can get it to be conservatively
correct, will still likely catch a lot of interesting and useful cases.
So it may well be useful to enable by default.

But more importantly for me, this should make it easier for me to test
that changes aren't breaking it in fundamental ways by enabling it for
normal builds.

llvm-svn: 242895
llvm/lib/Transforms/IPO/PassManagerBuilder.cpp