Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: gcc/rtlanal.c

Issue 7241010: Disable wrong Pmode != ptr_mode optimization (Closed) Base URL: http://git.chromium.org/native_client/nacl-gcc.git@master
Patch Set: Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcc/rtlanal.c
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c
index e6cec483b82c8aae05d1a98b3af98407b3c1f385..3c81615e4d33321a6be3068c4374d93393f2e75a 100644
--- a/gcc/rtlanal.c
+++ b/gcc/rtlanal.c
@@ -3988,6 +3988,8 @@ nonzero_bits1 (const_rtx x, enum machine_mode mode, const_rtx known_x,
if (result_low > 0)
nonzero &= ~(((HOST_WIDE_INT) 1 << result_low) - 1);
+#if 0
+ /* Disabled (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49504). */
#ifdef POINTERS_EXTEND_UNSIGNED
/* If pointers extend unsigned and this is an addition or subtraction
to a pointer in Pmode, all the bits above ptr_mode are known to be
@@ -3997,6 +3999,7 @@ nonzero_bits1 (const_rtx x, enum machine_mode mode, const_rtx known_x,
&& REG_P (XEXP (x, 0)) && REG_POINTER (XEXP (x, 0)))
nonzero &= GET_MODE_MASK (ptr_mode);
#endif
+#endif
}
break;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698