aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptedProcessPythonInterface.h
diff options
context:
space:
mode:
authorSander de Smalen <sander.desmalen@arm.com>2022-01-19 14:40:22 +0000
committerSander de Smalen <sander.desmalen@arm.com>2022-01-24 09:38:36 +0000
commit4f8fdf78279f0cb298dc0dc215ee56b0342235ee (patch)
treea23bdef6c802c596a696621377a595f4395f337e /lldb/source/Plugins/ScriptInterpreter/Python/ScriptedProcessPythonInterface.h
parent7ccacaf4428d1712029594184baa6f617a51c340 (diff)
downloadllvm-4f8fdf78279f0cb298dc0dc215ee56b0342235ee.zip
llvm-4f8fdf78279f0cb298dc0dc215ee56b0342235ee.tar.gz
llvm-4f8fdf78279f0cb298dc0dc215ee56b0342235ee.tar.bz2
[ISEL] Canonicalise constant splats to RHS.
SelectionDAG::getNode() canonicalises constants to the RHS if the operation is commutative, but it doesn't do so for constant splat vectors. Doing this early helps making certain folds on vector types, simplifying the code required for target DAGCombines that are enabled before Type legalization. Somewhat to my surprise, DAGCombine doesn't seem to traverse the DAG in a post-order DFS, so at the time of doing some custom fold where the input is a MUL, DAGCombiner::visitMUL hasn't yet reordered the constant splat to the RHS. This patch leads to a few improvements, but also a few minor regressions, which I traced down to D46492. When I tried reverting this change to see if the changes were still necessary, I ran into some segfaults. Not sure if there is some latent bug there. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D117794
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptedProcessPythonInterface.h')
0 files changed, 0 insertions, 0 deletions