[Bug ipa/108110] [13 Regression] ice in modify_call, at ipa-param-manipulation.cc:700 with -std=c++14 -O3 -march=native

2022-12-15 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108110

--- Comment #10 from David Binderman  ---
That's the bad revision.

  ipa: Better way of applying both IPA-CP and IPA-SRA (PR 103227)

[Bug ipa/108110] [13 Regression] ice in modify_call, at ipa-param-manipulation.cc:700 with -std=c++14 -O3 -march=native

2022-12-15 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108110

--- Comment #9 from David Binderman  ---
(In reply to David Binderman from comment #8)
> 803a91330bf20174 seems bad, so trying 095a13eda2caf684.

That seems bad, so trying 4834e9360f7bf42f.

[Bug ipa/108110] [13 Regression] ice in modify_call, at ipa-param-manipulation.cc:700 with -std=c++14 -O3 -march=native

2022-12-15 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108110

--- Comment #8 from David Binderman  ---
803a91330bf20174 seems bad, so trying 095a13eda2caf684.

[Bug ipa/108110] [13 Regression] ice in modify_call, at ipa-param-manipulation.cc:700 with -std=c++14 -O3 -march=native

2022-12-15 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108110

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P1

[Bug ipa/108110] [13 Regression] ice in modify_call, at ipa-param-manipulation.cc:700 with -std=c++14 -O3 -march=native

2022-12-14 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108110

David Binderman  changed:

   What|Removed |Added

 CC||mjambor at suse dot cz

--- Comment #7 from David Binderman  ---
That one seems bad. Trying 803a91330bf20174. Range seems
to be [7450b25566b7a738..512098a3316f07d4], so some 9 commits.

7 of them are by Martin Jambor , one is a daily bump
and one is unrelated.

Over to Martin.

[Bug ipa/108110] [13 Regression] ice in modify_call, at ipa-param-manipulation.cc:700 with -std=c++14 -O3 -march=native

2022-12-14 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108110

--- Comment #6 from David Binderman  ---
(In reply to David Binderman from comment #5)
> That revision seems good. Trying 7450b25566b7a738.

Seems good. Trying 512098a3316f07d4.

[Bug ipa/108110] [13 Regression] ice in modify_call, at ipa-param-manipulation.cc:700 with -std=c++14 -O3 -march=native

2022-12-14 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108110

--- Comment #5 from David Binderman  ---
That revision seems good. Trying 7450b25566b7a738.

For the reduced code, -march=zen3 not required.

[Bug ipa/108110] [13 Regression] ice in modify_call, at ipa-param-manipulation.cc:700 with -std=c++14 -O3 -march=native

2022-12-14 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108110

--- Comment #4 from David Binderman  ---
Git bisect now running. Trying 15f04af347e3b65f.

[Bug ipa/108110] [13 Regression] ice in modify_call, at ipa-param-manipulation.cc:700 with -std=c++14 -O3 -march=native

2022-12-14 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108110

--- Comment #3 from David Binderman  ---
Reduced C++ code seems to be:

namespace std {
template  struct integral_constant {
  static constexpr int value = __v;
};
using true_type = integral_constant;
using false_type = integral_constant;
template  struct __conditional {
  template  using type = _Tp;
};
template 
using __conditional_t = typename __conditional<_Cond>::type<_If, _Else>;
template  struct remove_cv { using type = _Tp; };
template  struct remove_reference { using type = _Tp; };
template 
struct __decay_selector
: __conditional_t, _Up> {};
template  struct decay {
  using type = typename __decay_selector<_Tp>::type;
};
template  using decay_t = typename decay<_Tp>::type;
template  using enable_if_t = _Tp;
template  _Tp &(typename remove_reference<_Tp>::type &);
long max(long __b) {
  if (__b)
return __b;
}
} // namespace std
enum layout_type { row_major };
template  struct svector {
  using size_type = long;
  using value_type = long;
  using const_reference = value_type;
  const_reference operator[](size_type) const;
  long *m_begin;
};
template 
auto svector::operator[](size_type idx) const -> const_reference {
  return m_begin[idx];
}
template  struct xcontainer_inner_types;
template  class xarray_container;
template 
using xarray = xarray_container;
template  struct xrange {
  using size_type = int;
  xrange(size_type, size_type) noexcept;
  size_type m_size;
};
template  struct xrange_adaptor {
  xrange_adaptor(int, int, int) : m_start() {}
  std::enable_if_t::value, xrange>
  get(long size) {
long __trans_tmp_8, __trans_tmp_7;
if (m_start)
  std::max(size);
if (m_stop)
  std::max(size);
return xrange(__trans_tmp_7, __trans_tmp_8);
  }
  int m_start;
  int m_stop;
};
template  auto range(A, B stop_val) {
  return xrange_adaptor(0, stop_val, int());
}
template  struct slice_implementation_getter {
  template  auto operator()(E e, SL slice, long index) {
return get_slice(e, slice, index, std::integral_constant<1>());
  }
  template 
  auto get_slice(E, SL slice, long, std::true_type) {
using int_type = std::decay_t;
return slice < int_type() ?: slice;
  }
};
template 
struct slice_implementation_getter> {
  template  auto operator()(E e, SL adaptor, long index) {
const svector __trans_tmp_6 = e.shape();
long __trans_tmp_2 = __trans_tmp_6[index];
return adaptor.get(__trans_tmp_2);
  }
};
long get_slice_implementation_index;
template  auto get_slice_implementation(E e, SL &) {
  slice_implementation_getter> getter;
  return getter(e, slice, get_slice_implementation_index);
}
template  xrange::xrange(size_type, size_type) noexcept {}
template  struct xcontainer {
  using derived_type = D;
  using inner_types = xcontainer_inner_types;
  using inner_shape_type = typename inner_types::inner_shape_type;
  constexpr const inner_shape_type () const noexcept;
  const derived_type _cast() const 
};
template  struct xstrided_container : xcontainer {
  using base_type = xcontainer;
  using typename base_type::inner_shape_type;
  const inner_shape_type _impl() const noexcept;
  inner_shape_type m_shape;
};
template 
constexpr auto xcontainer::shape() const noexcept
-> const inner_shape_type & {
  return derived_cast().shape_impl();
}
template 
auto xcontainer::derived_cast() const  -> const derived_type & {
  return *static_cast(this);
}
template 
auto xstrided_container::shape_impl() const noexcept
-> const inner_shape_type & {
  return m_shape;
}
template 
struct xcontainer_inner_types> {
  using shape_type = SC;
  using inner_shape_type = shape_type;
};
template 
struct xarray_container
: xstrided_container>> {};
struct xview {
  template  xview(CTA, FSL);
};
template  void make_view_impl(E e, S &&...slices) {
  using view_type = xview;
  view_type(get_slice_implementation(e, std::forward(slices))...);
}
template  void view(E e, S... slices) {
  make_view_impl(e, std::forward(slices)...);
}
void TestBody() {
  xarray a, arr;
  xrange_adaptor __trans_tmp_3 = range(1, 4),
__trans_tmp_4 = range(1, 3);
  view(a, 1, __trans_tmp_3);
  view(arr, 1, __trans_tmp_4);
}

[Bug ipa/108110] [13 Regression] ice in modify_call, at ipa-param-manipulation.cc:700 with -std=c++14 -O3 -march=native

2022-12-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108110

--- Comment #2 from Andrew Pinski  ---
Most likely one of the following revisions ranges caused the issue:
r13-4705 - r13-4706
r13-4684 - r13-4691

[Bug ipa/108110] [13 Regression] ice in modify_call, at ipa-param-manipulation.cc:700 with -std=c++14 -O3 -march=native

2022-12-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108110

Andrew Pinski  changed:

   What|Removed |Added

   Target Milestone|--- |13.0
Summary|ice in modify_call, at  |[13 Regression] ice in
   |ipa-param-manipulation.cc:7 |modify_call, at
   |00 with -std=c++14 -O3  |ipa-param-manipulation.cc:7
   |-march=native   |00 with -std=c++14 -O3
   ||-march=native
   Keywords||ice-on-valid-code