aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/XRayInstrumentation.cpp
diff options
context:
space:
mode:
authorHaicheng Wu <haicheng@codeaurora.org>2017-07-14 19:16:47 +0000
committerHaicheng Wu <haicheng@codeaurora.org>2017-07-14 19:16:47 +0000
commit476adcca6bfc63e1d04d240139a49ec7f68a8d8d (patch)
treedc8c0521eb17fb977c6992e081d963c88eeb3581 /llvm/lib/CodeGen/XRayInstrumentation.cpp
parent302a9d41c692cdd4db4c692c638bb2d8b6e69a51 (diff)
downloadllvm-476adcca6bfc63e1d04d240139a49ec7f68a8d8d.zip
llvm-476adcca6bfc63e1d04d240139a49ec7f68a8d8d.tar.gz
llvm-476adcca6bfc63e1d04d240139a49ec7f68a8d8d.tar.bz2
[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/CodeGen/XRayInstrumentation.cpp')
0 files changed, 0 insertions, 0 deletions