This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/33604] [4.3 Regression] Revision 119502 causes significantly slower results with 4.3 compared to 4.2



------- Comment #21 from jacob at math dot jussieu dot fr  2007-11-07 20:58 -------
Hi, I'm the guy behind Eigen, from which the initial testcase is taken.

Would it help the compiler if I removed most of the "const" keywords in my
code?

I am asking because of the following. As Eigen has Lvalue expression
templates(*), it is very cumbersome to enforce constness as many methods have
to be written twice, once const-qualified and once not. Therefore I have given
up enforcing constness, and am doing const_cast's at several places. Therefore
many of the "const" keywords in Eigen are rather meaningless and could be
removed.

(*) for instance the following is allowed:
matrix.row(i) += a * matrix.row(j).


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]