aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2021-03-09 09:27:25 +0000
committerFlorian Hahn <flo@fhahn.com>2021-03-09 11:40:18 +0000
commit92da5b711970610a2246cfa1baff5c2a63559e1b (patch)
tree75d36702eb4745cc28e87db7dd6834a5edf8286e /lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp
parent13c77f204671f403a30d29ec1c9145c556302f66 (diff)
downloadllvm-92da5b711970610a2246cfa1baff5c2a63559e1b.zip
llvm-92da5b711970610a2246cfa1baff5c2a63559e1b.tar.gz
llvm-92da5b711970610a2246cfa1baff5c2a63559e1b.tar.bz2
[InstCombine] Simplify phis with incoming pointer-casts.
If the incoming values of a phi are pointer casts of the same original value, replace the phi with a single cast. Such redundant phis are somewhat common after loop-rotate and removing them can avoid some unnecessary code bloat, e.g. because an iteration of a loop is peeled off to make the phi invariant. It should also simplify further analysis on its own. InstCombine already uses stripPointerCasts in a couple of places and also simplifies phis based on the incoming values, so the patch should fit in the existing scope. The patch causes binary changes in 47 out of 237 benchmarks in MultiSource/SPEC2000/SPEC2006 with -O3 -flto on X86. Reviewed By: lebedev.ri Differential Revision: https://reviews.llvm.org/D98058
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp')
0 files changed, 0 insertions, 0 deletions