From: Pekka Enberg <penberg@kernel.org>
To: Xi Wang <xi.wang@gmail.com>
Cc: Sparse Mailing-list <linux-sparse@vger.kernel.org>
Subject: Re: [PATCH 1/2] sparse, llvm: improve pointer arithmetic handling
Date: Sun, 19 May 2013 15:49:58 +0300 [thread overview]
Message-ID: <CAOJsxLErGy=US5DoegZWVHupHjCA=83MXXY2WOTmH0-wrJccmA@mail.gmail.com> (raw)
In-Reply-To: <1368965590-6714-1-git-send-email-xi.wang@gmail.com>
On Sun, May 19, 2013 at 3:13 PM, Xi Wang <xi.wang@gmail.com> wrote:
> Converting pointers to integers for pointer arithmetic effectively
> disables pointer analysis and future optimizations. A better way is to
> use LLVM's GEP, by converting pointers to `char *' rather than integers.
>
> Cc: Pekka Enberg <penberg@kernel.org>
> Acked-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
> Signed-off-by: Xi Wang <xi.wang@gmail.com>
Applied both patches, thanks a lot Xi!
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2013-05-19 12:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-19 12:13 [PATCH 1/2] sparse, llvm: improve pointer arithmetic handling Xi Wang
2013-05-19 12:13 ` [PATCH 2/2] sparse, llvm: set target specification Xi Wang
2013-05-19 12:49 ` Pekka Enberg [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAOJsxLErGy=US5DoegZWVHupHjCA=83MXXY2WOTmH0-wrJccmA@mail.gmail.com' \
--to=penberg@kernel.org \
--cc=linux-sparse@vger.kernel.org \
--cc=xi.wang@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).