summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp
diff options
context:
space:
mode:
authorJames Molloy <james.molloy@arm.com>2015-12-11 10:04:51 +0000
committerJames Molloy <james.molloy@arm.com>2015-12-11 10:04:51 +0000
commit37b82e79b20f7f8798d2b51508d5923703204351 (patch)
treecc9ed2413002adf3c29f49032eb7a8f9a11536b3 /lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp
parent48651489b3e885c21a0119a9e06f5355303dfd66 (diff)
downloadbcm5719-llvm-37b82e79b20f7f8798d2b51508d5923703204351.tar.gz
bcm5719-llvm-37b82e79b20f7f8798d2b51508d5923703204351.zip
[InstCombine] Make MatchBSwap also match bit reversals
MatchBSwap has most of the functionality to match bit reversals already. If we switch it from looking at bytes to individual bits and remove a few early exits, we can extend the main recursive function to match any sequence of ORs, ANDs and shifts that assemble a value from different parts of another, base value. Once we have this bit->bit mapping, we can very simply detect if it is appropriate for a bswap or bitreverse. llvm-svn: 255334
Diffstat (limited to 'lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud