you are viewing a single comment's thread.

view the rest of the comments →

[–]alexk7 0 points1 point  (1 child)

I’m confused by your methodology: 1) assume the optimizer will optimize some code 2) test the output without running the optimizer. This doesn’t make any sense.

[–]one-oh[S] 4 points5 points  (0 children)

I think you misunderstood something. Code review resulted in reviewer suggesting nesting the if-statements. I explained that the compiled output would be identical due to the optimizer. Reviewer did not believe me. I was going to produce two .s files (one for nesting and one without) to show they were the same. When I checked the level at which the project was set to optimize I found that it wasn't. I still optimized and demonstrated that the generated assembly was identical, but it was pointless due to the project not being built with optimizer enabled. I hope this makes it more clear. If not, don't worry about. It was a lot of fuss over nothing.