public inbox for java-prs@sourceware.org help / color / mirror / Atom feed
From: "tromey at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: java-prs@gcc.gnu.org Subject: [Bug java/21855] array bounds checking elimination Date: Tue, 10 Jan 2012 17:22:00 -0000 [thread overview] Message-ID: <bug-21855-8172-SDJzd5WCYX@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-21855-8172@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21855 --- Comment #24 from Tom Tromey <tromey at gcc dot gnu.org> 2012-01-10 17:21:02 UTC --- I found my code and it turns out I never finished it. (I did write a java-specific devirtualization pass.) Here is an introductory comment that explains my plans: /* This pass implements a few simple gcj-specific optimizations related to handling of invariants. In Java, certain fields of some objects are known to be invariant after the object has been created. For instance, the vtable pointer of an object cannot change; neither can the length of an array. Also, this pass knows that 'new Type[n]' sets the length of an array to 'n'. Ideally GCC would recognize these cases and optimize for us. However, currently there is no way to express these properties to the optimizers. */
next prev parent reply other threads:[~2012-01-10 17:22 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-21855-8172@http.gcc.gnu.org/bugzilla/> 2012-01-10 15:43 ` [Bug tree-optimization/21855] " rguenth at gcc dot gnu.org 2012-01-10 15:53 ` aph at gcc dot gnu.org 2012-01-10 16:20 ` [Bug java/21855] " rguenth at gcc dot gnu.org 2012-01-10 16:28 ` aph at gcc dot gnu.org 2012-01-10 16:31 ` rguenth at gcc dot gnu.org 2012-01-10 16:36 ` rguenth at gcc dot gnu.org 2012-01-10 16:46 ` aph at gcc dot gnu.org 2012-01-10 16:58 ` rguenth at gcc dot gnu.org 2012-01-10 16:59 ` rguenth at gcc dot gnu.org 2012-01-10 17:08 ` aph at gcc dot gnu.org 2012-01-10 17:18 ` tromey at gcc dot gnu.org 2012-01-10 17:22 ` tromey at gcc dot gnu.org [this message] 2015-10-20 15:08 ` aph at gcc dot gnu.org
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=bug-21855-8172-SDJzd5WCYX@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=java-prs@gcc.gnu.org \ /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: linkBe 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 read-only IMAP folder(s) and NNTP newsgroup(s).