diff options
author | Yonghong Song <yhs@fb.com> | 2018-03-13 06:47:03 +0000 |
---|---|---|
committer | Yonghong Song <yhs@fb.com> | 2018-03-13 06:47:03 +0000 |
commit | c88bcdec432ca22258a1fd8af57d1e97dab7142f (patch) | |
tree | 395d77776a1395e8edfe50627f7c40cf5df124df /lldb/packages/Python/lldbsuite/test/python_api/thread | |
parent | 905d13c1230685eb11b2a00b26773f5f052e80db (diff) | |
download | bcm5719-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