https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109441
--- Comment #4 from Richard Biener ---
(In reply to AK from comment #3)
> > But IMHO it's academic, right?
>
> yes. i was just messing with vector codegen. But in case all the elements of
> a vector/array are same, maybe the loop can be replace
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109441
--- Comment #3 from AK ---
> But IMHO it's academic, right?
yes. i was just messing with vector codegen. But in case all the elements of a
vector/array are same, maybe the loop can be replaced with equivalent
computation?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109441
Richard Biener changed:
What|Removed |Added
Last reconfirmed||2023-04-11
Status|UNCONFIR
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109441
--- Comment #1 from AK ---
I guess a better test case is this:
#include
using namespace std;
using T = int;
T v(std::vector v) {
T s;
std::fill(v.begin(), v.end(), T());
for (auto i = 0; i < v.size(); ++i) {
s += v[i];
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109441
Andrew Pinski changed:
What|Removed |Added
Keywords||missed-optimization
Severity|