OSDN Git Service

[StackSafety] Ignore unreachable instructions
authorVitaly Buka <vitalybuka@google.com>
Mon, 22 Jun 2020 07:45:08 +0000 (00:45 -0700)
committerVitaly Buka <vitalybuka@google.com>
Mon, 22 Jun 2020 10:45:29 +0000 (03:45 -0700)
commit8f592ed33360516e9531fc12424ad050d17195b4
tree06b8d5b2299db674f38fc6eef999199158877710
parent01f9388d95aca2cc86ed6b2794e199ef55d16e91
[StackSafety] Ignore unreachable instructions

Usually DominatorTree provides this info, but here we use
StackLifetime. The reason is that in the next patch StackLifetime
will be used for actual lifetime checks and we can avoid
forwarding the DominatorTree into this code.
llvm/lib/Analysis/StackSafetyAnalysis.cpp
llvm/test/Analysis/StackSafetyAnalysis/local.ll