Improve DSE which in turn eliminates the need for jump threading and block duplicatio...
authorJeff Law <law@redhat.com>
Wed, 29 Jan 2020 19:23:53 +0000 (12:23 -0700)
committerJeff Law <law@redhat.com>
Wed, 29 Jan 2020 19:26:35 +0000 (12:26 -0700)
commit0de349f108d963219bd59aa374a68c15355236be
tree5ac0fe26ef9542fb34274a9a502095b4e213f6a2
parent2812a28418b72b24979805cfca1f140dda4963b7
Improve DSE which in turn eliminates the need for jump threading and block duplication for the original testcase in pr89689 which in turn eliminates the false positive -Warray-bounds warning for the original testcase.

PR tree-optimization/89689
* builtins.def (BUILT_IN_OBJECT_SIZE): Make it const rather than pure.

PR tree-optimization/89689
* gcc.dg/pr89689.c: New test.
gcc/ChangeLog
gcc/builtins.def
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr89689.c [new file with mode: 0644]