diff options
| author | Jingyue Wu <jingyue@google.com> | 2015-08-31 06:10:27 +0000 |
|---|---|---|
| committer | Jingyue Wu <jingyue@google.com> | 2015-08-31 06:10:27 +0000 |
| commit | e84f6718300d8842b71b56c6593cff3f91d69323 (patch) | |
| tree | df48c1c23342d5d77e4d56a88ed4cd850826b0be /lld/lib/ReaderWriter/ELF/Mips/MipsLinkingContext.cpp | |
| parent | 64c0ff414109082f14060f318794398e7bc65bde (diff) | |
| download | bcm5719-llvm-e84f6718300d8842b71b56c6593cff3f91d69323.tar.gz bcm5719-llvm-e84f6718300d8842b71b56c6593cff3f91d69323.zip | |
[JumpThreading] make jump threading respect convergent annotation.
Summary:
JumpThreading shouldn't duplicate a convergent call, because that would move a convergent call into a control-inequivalent location. For example,
if (cond) {
...
} else {
...
}
convergent_call();
if (cond) {
...
} else {
...
}
should not be optimized to
if (cond) {
...
convergent_call();
...
} else {
...
convergent_call();
...
}
Test Plan: test/Transforms/JumpThreading/basic.ll
Patch by Xuetian Weng.
Reviewers: resistor, arsenm, jingyue
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D12484
llvm-svn: 246415
Diffstat (limited to 'lld/lib/ReaderWriter/ELF/Mips/MipsLinkingContext.cpp')
0 files changed, 0 insertions, 0 deletions

