diff options
author | Enna1 <xumingjie1995@outlook.com> | 2020-03-28 17:59:22 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-03-28 18:01:17 +0100 |
commit | 03bc311a16e292025f150ddafa9d468af562b897 (patch) | |
tree | 8f10bf045e3507c48c8b0b62820244831933e760 /llvm/lib/Support/Threading.cpp | |
parent | e6112a56dde6db13ea29721077cb9d294d01b54d (diff) | |
download | llvm-03bc311a16e292025f150ddafa9d468af562b897.zip llvm-03bc311a16e292025f150ddafa9d468af562b897.tar.gz llvm-03bc311a16e292025f150ddafa9d468af562b897.tar.bz2 |
[CorrelatedValuePropagation] Remove redundant if statement in processSelect()
This statement
if (ReplaceWith == S) ReplaceWith = UndefValue::get(S->getType());
is introduced in https://reviews.llvm.org/rG35609d97ae89b8e13f40f4e6b9b056954f8baa83
to fix a case where unreachable code can cause select instruction
simplification to fail. In https://reviews.llvm.org/rGd10480657527ffb44ea213460fb3676a6b1300aa,
we begin to perform a depth-first walk of basic blocks. This means
we will not visit unreachable blocks. So we do not need this the
special check any more.
Differential Revision: https://reviews.llvm.org/D76753
Diffstat (limited to 'llvm/lib/Support/Threading.cpp')
0 files changed, 0 insertions, 0 deletions