summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/TGParser.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-10-17 01:23:35 +0000
committerDan Gohman <gohman@apple.com>2008-10-17 01:23:35 +0000
commita39b0a1f05337718973fb9a52df61b302e766109 (patch)
treecd813fc7a73dae6e2453f8d7e20aae4f62390b17 /llvm/utils/TableGen/TGParser.cpp
parent380827cfa191bbaba24777dffa9b6f0dc10c3b75 (diff)
downloadbcm5719-llvm-a39b0a1f05337718973fb9a52df61b302e766109.tar.gz
bcm5719-llvm-a39b0a1f05337718973fb9a52df61b302e766109.zip
Define patterns for shld and shrd that match immediate
shift counts, and patterns that match dynamic shift counts when the subtract is obscured by a truncate node. Add DAGCombiner support for recognizing rotate patterns when the shift counts are defined by truncate nodes. Fix and simplify the code for commuting shld and shrd instructions to work even when the given instruction doesn't have a parent, and when the caller needs a new instruction. These changes allow LLVM to use the shld, shrd, rol, and ror instructions on x86 to replace equivalent code using two shifts and an or in many more cases. llvm-svn: 57662
Diffstat (limited to 'llvm/utils/TableGen/TGParser.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud