]> granicus.if.org Git - llvm/commit
[CodeGen] Compute DT/LI lazily in SafeStackLegacyPass. NFC.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Wed, 10 May 2017 00:39:25 +0000 (00:39 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Wed, 10 May 2017 00:39:25 +0000 (00:39 +0000)
commit294ef0b8d64e2b1e109a5bf94a2eff1e3becf064
tree139c82146eaa6d9032988fc607e99f29d690890c
parent756714d0def21098018a7dcdbcc1e2c2049fb888
[CodeGen] Compute DT/LI lazily in SafeStackLegacyPass. NFC.

We currently require SCEV, which requires DT/LI.  Those are expensive to
compute, but the pass only runs for functions that have the safestack
attribute.

Compute DT/LI to build SCEV lazily, only when the pass is actually going
to transform the function.

Differential Revision: https://reviews.llvm.org/D31302

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302610 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SafeStack.cpp
test/CodeGen/X86/O0-pipeline.ll