summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/symbol-context/TestSymbolContext.py
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2015-11-04 20:48:09 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2015-11-04 20:48:09 +0000
commit7e6606f4f1ee5e6a9cddced7c8572d6f55cf8cbe (patch)
tree4c28a457ee55378cd41bfcca952217ca466be7f2 /lldb/packages/Python/lldbsuite/test/python_api/symbol-context/TestSymbolContext.py
parentb11b440f8e354b858579af454e72988a3e5d768d (diff)
downloadbcm5719-llvm-7e6606f4f1ee5e6a9cddced7c8572d6f55cf8cbe.tar.gz
bcm5719-llvm-7e6606f4f1ee5e6a9cddced7c8572d6f55cf8cbe.zip
[X86][SSE] Add general memory folding for (V)INSERTPS instruction
This patch improves the memory folding of the inserted float element for the (V)INSERTPS instruction. The existing implementation occurs in the DAGCombiner and relies on the narrowing of a whole vector load into a scalar load (and then converted into a vector) to (hopefully) allow folding to occur later on. Not only has this proven problematic for debug builds, it also prevents other memory folds (notably stack reloads) from happening. This patch removes the old implementation and moves the folding code to the X86 foldMemoryOperand handler. A new private 'special case' function - foldMemoryOperandCustom - has been added to deal with memory folding of instructions that can't just use the lookup tables - (V)INSERTPS is the first of several that could be done. It also tweaks the memory operand folding code with an additional pointer offset that allows existing memory addresses to be modified, in this case to convert the vector address to the explicit address of the scalar element that will be inserted. Unlike the previous implementation we now set the insertion source index to zero, although this is ignored for the (V)INSERTPSrm version, anything that relied on shuffle decodes (such as unfolding of insertps loads) was incorrectly calculating the source address - I've added a test for this at insertps-unfold-load-bug.ll Differential Revision: http://reviews.llvm.org/D13988 llvm-svn: 252074
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/symbol-context/TestSymbolContext.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud