"Bingfeng Mei" <b...@broadcom.com> writes: > I am experimenting some cond_exec patterns to better support > predicate in our target. I came across the following optimization > done in cse1, and not sure if it is correct behaviour or my fault. > Basically, cse1 performs copy propagation for insn 12 and 16 based > on assignment in insn 10. However, there is a conditional assignment > of reg 86 in insn 11. Shouldn't GCC perform the optimization here?
I don't think any of the current gcc ports expect to see a cond_exec before the ifcvt pass, which is where define_cond_exec is implemented. So, this sounds like a bug in combine which none of the current ports trigger. Ian