aboutsummaryrefslogtreecommitdiff
path: root/clang-tools-extra/clang-tidy/misc/InefficientAlgorithmCheck.cpp
diff options
context:
space:
mode:
authorJingyue Wu <jingyue@google.com>2015-08-31 06:10:27 +0000
committerJingyue Wu <jingyue@google.com>2015-08-31 06:10:27 +0000
commite84f6718300d8842b71b56c6593cff3f91d69323 (patch)
treedf48c1c23342d5d77e4d56a88ed4cd850826b0be /clang-tools-extra/clang-tidy/misc/InefficientAlgorithmCheck.cpp
parent64c0ff414109082f14060f318794398e7bc65bde (diff)
downloadllvm-e84f6718300d8842b71b56c6593cff3f91d69323.zip
llvm-e84f6718300d8842b71b56c6593cff3f91d69323.tar.gz
llvm-e84f6718300d8842b71b56c6593cff3f91d69323.tar.bz2
[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 'clang-tools-extra/clang-tidy/misc/InefficientAlgorithmCheck.cpp')
0 files changed, 0 insertions, 0 deletions