[Attributor][NFC] Run the verifier only on functions and under EXPENSIVE_CHECKS
authorJohannes Doerfert <johannes@jdoerfert.de>
Mon, 13 Apr 2020 17:24:09 +0000 (12:24 -0500)
committerJohannes Doerfert <johannes@jdoerfert.de>
Thu, 16 Apr 2020 05:55:33 +0000 (00:55 -0500)
commitad9c284cc3186f9ca603b1a99a0723b45a07ba09
treee64640940875b4db06aef2acc3bc304ff0039ce1
parent8e1408695cef6c71ff95b037acec2503faf56ce6
[Attributor][NFC] Run the verifier only on functions and under EXPENSIVE_CHECKS

Running the verifier is expensive so we want to avoid it even in runs
that enable assertions. As we move closer to enabling the Attributor
this code will be executed by some buildbots but not cause overhead for
most people.
llvm/lib/Transforms/IPO/Attributor.cpp