This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/68282] Optimization fails to remove unnecessary sign extension instruction
- From: "sgunderson at bigfoot dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 11 Nov 2015 09:54:36 +0000
- Subject: [Bug rtl-optimization/68282] Optimization fails to remove unnecessary sign extension instruction
- Auto-submitted: auto-generated
- References: <bug-68282-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68282
sgunderson at bigfoot dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sgunderson at bigfoot dot com
--- Comment #2 from sgunderson at bigfoot dot com ---
Shouldn't it be possible to fold the incl into the mov, too?
shrl $2, %edi
movl table+4(,%rdi,4), %eax
retq