commit | 294ef0b8d64e2b1e109a5bf94a2eff1e3becf064 | [log] [tgz] |
---|---|---|
author | Ahmed Bougacha <ahmed.bougacha@gmail.com> | Wed May 10 00:39:25 2017 +0000 |
committer | Ahmed Bougacha <ahmed.bougacha@gmail.com> | Wed May 10 00:39:25 2017 +0000 |
tree | 139c82146eaa6d9032988fc607e99f29d690890c | |
parent | 756714d0def21098018a7dcdbcc1e2c2049fb888 [diff] |
[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