diff options
| author | Haicheng Wu <haicheng@codeaurora.org> | 2017-07-14 19:16:47 +0000 |
|---|---|---|
| committer | Haicheng Wu <haicheng@codeaurora.org> | 2017-07-14 19:16:47 +0000 |
| commit | 476adcca6bfc63e1d04d240139a49ec7f68a8d8d (patch) | |
| tree | dc8c0521eb17fb977c6992e081d963c88eeb3581 /llvm/lib/Support/CrashRecoveryContext.cpp | |
| parent | 302a9d41c692cdd4db4c692c638bb2d8b6e69a51 (diff) | |
| download | bcm5719-llvm-476adcca6bfc63e1d04d240139a49ec7f68a8d8d.tar.gz bcm5719-llvm-476adcca6bfc63e1d04d240139a49ec7f68a8d8d.zip | |
[JumpThreading] Add a pattern to TryToUnfoldSelectInCurrBB()
Add the following pattern to TryToUnfoldSelectInCurrBB()
bb:
%p = phi [0, %bb1], [1, %bb2], [0, %bb3], [1, %bb4], ...
%c = cmp %p, 0
%s = select %c, trueval, falseval
The Select in the above pattern will be unfolded and then jump-threaded. The
current implementation does not allow CMP in the middle of PHI and Select.
Differential Revision: https://reviews.llvm.org/D34762
llvm-svn: 308050
Diffstat (limited to 'llvm/lib/Support/CrashRecoveryContext.cpp')
0 files changed, 0 insertions, 0 deletions

