diff options
author | Roman Lebedev <lebedev.ri@gmail.com> | 2021-01-07 21:18:50 +0300 |
---|---|---|
committer | Roman Lebedev <lebedev.ri@gmail.com> | 2021-01-08 02:15:24 +0300 |
commit | 16ab8e5f6dbbeb5b8e900677f4a64c9924ecd7ba (patch) | |
tree | d4a7ba1ef49119249504b8ad540e2432859343bd /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp | |
parent | 087be536feab0aacc043aed52bee2e48e90e538c (diff) | |
download | llvm-16ab8e5f6dbbeb5b8e900677f4a64c9924ecd7ba.zip llvm-16ab8e5f6dbbeb5b8e900677f4a64c9924ecd7ba.tar.gz llvm-16ab8e5f6dbbeb5b8e900677f4a64c9924ecd7ba.tar.bz2 |
[SimplifyCFG] ConstantFoldTerminator(): handle matching destinations of condbr earlier
We need to handle this case before dealing with the case of constant
branch condition, because if the destinations match, latter fold
would try to remove the DomTree edge that would still be present.
This allows to make that particular DomTree update non-permissive
Diffstat (limited to 'llvm/lib/Transforms/Utils/BasicBlockUtils.cpp')
0 files changed, 0 insertions, 0 deletions