summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/thread
diff options
context:
space:
mode:
authorYonghong Song <yhs@fb.com>2018-03-13 06:47:03 +0000
committerYonghong Song <yhs@fb.com>2018-03-13 06:47:03 +0000
commitc88bcdec432ca22258a1fd8af57d1e97dab7142f (patch)
tree395d77776a1395e8edfe50627f7c40cf5df124df /lldb/packages/Python/lldbsuite/test/python_api/thread
parent905d13c1230685eb11b2a00b26773f5f052e80db (diff)
downloadbcm5719-llvm-c88bcdec432ca22258a1fd8af57d1e97dab7142f.tar.gz
bcm5719-llvm-c88bcdec432ca22258a1fd8af57d1e97dab7142f.zip
bpf: Extends zero extension elimination beyond comparison instructions
The current zero extension elimination was restricted to operands of comparison. It actually could be extended to more cases. For example: int *inc_p (int *p, unsigned a) { return p + a; } 'a' will be promoted to i64 during addition, and the zero extension could be eliminated as well. For the elimination optimization, it should be much better to start recognizing the candidate sequence from the SRL instruction instead of J* instructions. This patch makes it an generic zero extension elimination pass instead of one restricted with comparison. Signed-off-by: Jiong Wang <jiong.wang@netronome.com> Signed-off-by: Yonghong Song <yhs@fb.com> llvm-svn: 327367
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/thread')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud