diff options
author | Nikita Popov <npopov@redhat.com> | 2022-03-02 10:54:57 +0100 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2022-03-02 12:16:32 +0100 |
commit | 0817ce86b540f909eade6a8d7370e1b47e863a70 (patch) | |
tree | 82e5b07f618e1fe3440e27233d23dc392db86b5d /llvm/lib/Object/Archive.cpp | |
parent | 8bed52c9eb8b871aaee3e082b71e60c5dbf2fc46 (diff) | |
download | llvm-0817ce86b540f909eade6a8d7370e1b47e863a70.zip llvm-0817ce86b540f909eade6a8d7370e1b47e863a70.tar.gz llvm-0817ce86b540f909eade6a8d7370e1b47e863a70.tar.bz2 |
[InstCombine] Support switch in phi to cond fold
For conditional branches, we know the value is i1 0 or i1 1 along
the outgoing edges. For switches we can apply exactly the same
optimization, just with the known values determined by the switch
cases.
Diffstat (limited to 'llvm/lib/Object/Archive.cpp')
0 files changed, 0 insertions, 0 deletions