diff options
| author | Anna Thomas <anna@azul.com> | 2017-05-23 13:36:25 +0000 |
|---|---|---|
| committer | Anna Thomas <anna@azul.com> | 2017-05-23 13:36:25 +0000 |
| commit | c07d5544dde0cc6e1d844028d82aa2cf1dc8066a (patch) | |
| tree | 0417d53c3fb6d2126732b357a23f41491058daa4 /clang/tools/libclang/CXCompilationDatabase.cpp | |
| parent | b6d40cceeed08876e6d633099de7c5c15f66c453 (diff) | |
| download | bcm5719-llvm-c07d5544dde0cc6e1d844028d82aa2cf1dc8066a.tar.gz bcm5719-llvm-c07d5544dde0cc6e1d844028d82aa2cf1dc8066a.zip | |
[JumpThreading] Safely replace uses of condition
This patch builds over https://reviews.llvm.org/rL303349 and replaces
the use of the condition only if it is safe to do so.
We should not blindly RAUW the condition if experimental.guard or assume
is a use of that
condition. This is because LVI may have used the guard/assume to
identify the
value of the condition, and RUAWing will fold the guard/assume and uses
before the guards/assumes.
Reviewers: sanjoy, reames, trentxintong, mkazantsev
Reviewed by: sanjoy, reames
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D33257
llvm-svn: 303633
Diffstat (limited to 'clang/tools/libclang/CXCompilationDatabase.cpp')
0 files changed, 0 insertions, 0 deletions

