aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2021-07-01 12:22:41 -0700
committerHeejin Ahn <aheejin@gmail.com>2021-07-02 12:10:24 -0700
commit51fecd17bbe04ccf1551132b5fffac43139c7af8 (patch)
tree4e6f09da7cfa6a287b1800e96274d18636b9de1c /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent35d4593e6b555f852088211f5561c0e360c98c91 (diff)
downloadllvm-51fecd17bbe04ccf1551132b5fffac43139c7af8.zip
llvm-51fecd17bbe04ccf1551132b5fffac43139c7af8.tar.gz
llvm-51fecd17bbe04ccf1551132b5fffac43139c7af8.tar.bz2
[InstCombine] Don't combine PHI before catchswitch
This tries to bail out if the PHI is in a `catchswitch` BB in InstCombine. A PHI cannot be combined into a non-PHI instruction if it is in a `catchswitch` BB, because `catchswitch` BB cannot have any non-PHI instruction other than `catchswitch` itself. The given test case started crashing after D98058. Reviewed By: lebedev.ri, rnk Differential Revision: https://reviews.llvm.org/D105309
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions