aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-fold.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gimple-fold.c')
-rw-r--r--gcc/gimple-fold.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c
index f6d758a..c1d8442 100644
--- a/gcc/gimple-fold.c
+++ b/gcc/gimple-fold.c
@@ -55,7 +55,6 @@ along with GCC; see the file COPYING3. If not see
#include "gomp-constants.h"
#include "optabs-query.h"
#include "omp-general.h"
-#include "ipa-chkp.h"
#include "tree-cfg.h"
#include "fold-const-call.h"
#include "stringpool.h"
@@ -728,18 +727,6 @@ gimple_fold_builtin_memory_op (gimple_stmt_iterator *gsi,
unsigned int src_align, dest_align;
tree off0;
- /* Inlining of memcpy/memmove may cause bounds lost (if we copy
- pointers as wide integer) and also may result in huge function
- size because of inlined bounds copy. Thus don't inline for
- functions we want to instrument. */
- if (flag_check_pointer_bounds
- && chkp_instrumentable_p (cfun->decl)
- /* Even if data may contain pointers we can inline if copy
- less than a pointer size. */
- && (!tree_fits_uhwi_p (len)
- || compare_tree_int (len, POINTER_SIZE_UNITS) >= 0))
- return false;
-
/* Build accesses at offset zero with a ref-all character type. */
off0 = build_int_cst (build_pointer_type_for_mode (char_type_node,
ptr_mode, true), 0);