[Bug tree-optimization/19401] Trivial loop not unrolled

gdr at integrable-solutions dot net gcc-bugzilla@gcc.gnu.org
Wed Jan 12 17:06:00 GMT 2005


------- Additional Comments From gdr at integrable-solutions dot net  2005-01-12 17:06 -------
Subject: Re:  Trivial loop not unrolled

"rguenth at tat dot physik dot uni-tuebingen dot de" <gcc-bugzilla@gcc.gnu.org> writes:

| Or stuff often found in C++ libraries:
| 
| template <int Dim>
| struct Vector
| {
|   Vector(float init)
|   {
|     for (int i=0; i<Dim; ++i)
|       v[i] = init;
|   }
|   float v[Dim];
| };
| 
| for small Dim (<= 4 should make nearly everyone happy) you want all the
| dimension-unaware loops to be unrolled.

I agree.

-- Gaby


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19401



More information about the Gcc-bugs mailing list