This is the mail archive of the gcc-patches@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]

Re: [PATCH]: Fix PR tree-optimization/19038


Daniel Berlin wrote:

+ /* Don't replace loop invariant variables with loop variant copies. */ + if (loop_depth_of_name (val) > loop_depth_of_name (op))
+ return false;
Hmm, what if loop_depth(val) > loop_depth(op) but VAL is not loop variant?


Diego.



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