summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorChen Li <meloli87@gmail.com>2016-01-06 20:32:05 +0000
committerChen Li <meloli87@gmail.com>2016-01-06 20:32:05 +0000
commit78bde830033a61548d8b337c60ecc18630fb237f (patch)
tree87f30fa70323763db2cfeb40b5799edd04ad3680 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent33b3f2116824af744704f4a89a0dadfed2dab764 (diff)
downloadbcm5719-llvm-78bde830033a61548d8b337c60ecc18630fb237f.tar.gz
bcm5719-llvm-78bde830033a61548d8b337c60ecc18630fb237f.zip
[SplitLandingPadPredecessors] Create a PHINode for the original landingpad only if it has some uses
Summary: This patch adds a check in SplitLandingPadPredecessors to see if the original landingpad instruction has any uses. If not, we don't need to create a PHINode for it in the joint block since it's gonna be a dead code anyway. The motivation for this patch is that we found a bug that SplitLandingPadPredecessors created a PHINode of token type landingpad, which failed the verifier since PHINode can not be token type. However, the created PHINode will never be used in our code pattern. This patch will workaround this bug, and we might add supports in SplitLandingPadPredecessors to handle token type landingpad with uses in the future. Reviewers: reames Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D15835 llvm-svn: 256972
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud