aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/DFAPacketizer.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2014-08-20 20:34:56 +0000
committerSanjay Patel <spatel@rotateright.com>2014-08-20 20:34:56 +0000
commitbba72c7c1e2144031245e9cb0d3109a34c7d0f88 (patch)
tree90afadafd8b9f2a9bf3b2369cd34223ef20df4e7 /llvm/lib/CodeGen/DFAPacketizer.cpp
parent7bb10f8a857fa78548e891f9f8c32cef2a0f20bb (diff)
downloadllvm-bba72c7c1e2144031245e9cb0d3109a34c7d0f88.zip
llvm-bba72c7c1e2144031245e9cb0d3109a34c7d0f88.tar.gz
llvm-bba72c7c1e2144031245e9cb0d3109a34c7d0f88.tar.bz2
Don't prevent a vselect of constants from becoming a single load (PR20648).
Fix for PR20648 - http://llvm.org/bugs/show_bug.cgi?id=20648 This patch checks the operands of a vselect to see if all values are constants. If yes, bail out of any further attempts to create a blend or shuffle because SelectionDAGLegalize knows how to turn this kind of vselect into a single load. This already happens for machines without SSE4.1, so the added checks just send more targets down that path. Differential Revision: http://reviews.llvm.org/D4934 llvm-svn: 216121
Diffstat (limited to 'llvm/lib/CodeGen/DFAPacketizer.cpp')
0 files changed, 0 insertions, 0 deletions