aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
diff options
context:
space:
mode:
authorEhsan Amiri <amehsan@ca.ibm.com>2019-01-11 15:52:57 +0000
committerEhsan Amiri <amehsan@ca.ibm.com>2019-01-11 15:52:57 +0000
commitf452f116d2f272af1ea60455167b9e0508c0e47b (patch)
treedd51a13b15d875dcc9278d76a56de2c53f95fd9b /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
parent80378fd38b80b18bd053f4a3f9d461246d9444be (diff)
downloadllvm-f452f116d2f272af1ea60455167b9e0508c0e47b.zip
llvm-f452f116d2f272af1ea60455167b9e0508c0e47b.tar.gz
llvm-f452f116d2f272af1ea60455167b9e0508c0e47b.tar.bz2
[Jump Threading] Unfold a select insn that feeds a switch via a phi node
Currently when a select has a constant value in one branch and the select feeds a conditional branch (via a compare/ phi and compare) we unfold the select statement. This results in threading the conditional branch later on. Similar opportunity exists when a select (with a constant in one branch) feeds a switch (via a phi node). The patch unfolds select under this condition. A testcase is provided. llvm-svn: 350931
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions