"git@repo.hca.bsc.es:lalbano/llvm-bpevl.git" did not exist on "3169f0129a682a54cb90996fcb550184af6cdef9"
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
Loading
Please register or sign in to comment