OSDN Git Service

[JumpThread] Enhance finding partial redundant loads by continuing scanning single...
authorJun Bum Lim <junbuml@codeaurora.org>
Thu, 2 Feb 2017 15:12:34 +0000 (15:12 +0000)
committerJun Bum Lim <junbuml@codeaurora.org>
Thu, 2 Feb 2017 15:12:34 +0000 (15:12 +0000)
commit0de282c06041860be0909b5c7c555ddd3a54e230
treeb01a460bac05c78716c273e756e71725339bd8c1
parent06ff48c9a0643c6179236e26852317b1840ee717
[JumpThread] Enhance finding partial redundant loads by continuing scanning single predecessor

Summary: While scanning predecessors to find an available loaded value, if the predecessor has a single predecessor, we can continue scanning through the single predecessor.

Reviewers: mcrosier, rengolin, reames, davidxl, haicheng

Reviewed By: rengolin

Subscribers: zzheng, llvm-commits

Differential Revision: https://reviews.llvm.org/D29200

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293896 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/Loads.h
lib/Analysis/Loads.cpp
lib/Transforms/Scalar/JumpThreading.cpp
test/Transforms/JumpThreading/thread-loads.ll