Naveen H.S. wrote:
causing the branch to be based on the output of the bit op rather
than whatever was in cc0 from some previous operation
Yes, the peepholes cause the branch to be based on the output of bit.
However, the peepholes were implemented as they generate new
conditional bit instructions. We realize that they do not help in any
optimization. Hence, peepholes will be removed as per the suggestion
and patch will be reposted when GCC returns to stage1.
In the past we've created PRs to track patches waiting for the tree to
return to stage1 (17652, 28177, 23111, 33702). Feel free to create a
GCC 4.5 pending patches PR and attach the updated patch to that PR to
ensure it doesn't get lost while we wait for the tree to return to stage1.
jeff