[MemorySSA] Don't verify MemorySSA unless VerifyMemorySSA enabled
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 12 Feb 2020 21:25:27 +0000 (22:25 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 13 Feb 2020 17:46:58 +0000 (18:46 +0100)
commitf0b57d8071853ec2ab459c0492854c67ea4fa93c
tree2bec84cf9cd52981d04f01067faeb8d6290bfe7f
parentbfe3779459eddaf6ad869a9707c827c2a243def6
[MemorySSA] Don't verify MemorySSA unless VerifyMemorySSA enabled

MemorySSA is often taking up an unreasonable fraction of runtime in
assertion enabled builds. Turns out that there is one code-path that
runs verifyMemorySSA() even if VerifyMemorySSA is not enabled. This
patch makes it conditional as well.

Differential Revision: https://reviews.llvm.org/D74505
llvm/lib/Analysis/MemorySSA.cpp