diff options
author | Teresa Johnson <tejohnson@google.com> | 2021-05-24 22:02:44 -0700 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2021-05-25 17:02:13 -0700 |
commit | d35fe04fa35a080cb024ecb56db67dc822c70740 (patch) | |
tree | 8b82da7c19ad1a135d450fd701426341da6992d8 /llvm/lib/Object/COFFObjectFile.cpp | |
parent | ad90a6be219a547873beb80f977e45e23e9247ac (diff) | |
download | llvm-d35fe04fa35a080cb024ecb56db67dc822c70740.zip llvm-d35fe04fa35a080cb024ecb56db67dc822c70740.tar.gz llvm-d35fe04fa35a080cb024ecb56db67dc822c70740.tar.bz2 |
[LTT] Handle merged llvm.assume when dropping type tests
When the lower type test pass is invoked a second time with
DropTypeTests set to true, it expects that all remaining type tests feed
assume instructions, which are removed along with the type tests.
In some cases the llvm.assume might have been merged with another one,
i.e. from a builtin_assume instruction, in which case the type test
would actually feed a phi that in turn feeds the merged assume
instruction. In this case we can simply replace that operand of the phi
with "true" before removing the type test.
Differential Revision: https://reviews.llvm.org/D103073
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions