aboutsummaryrefslogtreecommitdiff
path: root/gcc/integrate.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2001-01-23 19:36:06 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2001-01-23 19:36:06 +0100
commit96e60f0c1a31d4a76905e01d583f4c62b19fd6d1 (patch)
treef1ed9d3a3aa4c282e6afcb7e636e652eec822c8f /gcc/integrate.h
parent909b968ecb78bdc07303dffc5fcd26d9c7a8f722 (diff)
downloadgcc-96e60f0c1a31d4a76905e01d583f4c62b19fd6d1.zip
gcc-96e60f0c1a31d4a76905e01d583f4c62b19fd6d1.tar.gz
gcc-96e60f0c1a31d4a76905e01d583f4c62b19fd6d1.tar.bz2
integrate.h (struct inline_remap): Add compare_src, compare_mode.
* integrate.h (struct inline_remap): Add compare_src, compare_mode. * integrate.c (expand_inline_function): Initialize them. (subst_constants): If changing COMPARE so that both its arguments will be VOIDmode and the comparison mode will be lost, note compare_mode. Use the recorded compare_mode to optimize IF_THEN_ELSE. From-SVN: r39203
Diffstat (limited to 'gcc/integrate.h')
-rw-r--r--gcc/integrate.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/integrate.h b/gcc/integrate.h
index 794276b..51fced4 100644
--- a/gcc/integrate.h
+++ b/gcc/integrate.h
@@ -112,6 +112,10 @@ struct inline_remap
/* Record the last thing assigned to cc0. */
rtx last_cc0_value;
#endif
+ /* Note mode of COMPARE if the mode would be otherwise lost (comparing of
+ two VOIDmode constants. */
+ rtx compare_src;
+ enum machine_mode compare_mode;
};
/* Return a copy of an rtx (as needed), substituting pseudo-register,