FXC optimization might be flawed

FYI I’ve found an FXC optimization flaw that produces wrong results in certain conditions. It has to do with logical flow and returning results from functions - in certain cases it ignores “if” clause and wrongly shortcuts the code instead.

FYI I’ve found an FXC optimization flaw that produces wrong results in certain conditions. It has to do with logical flow and returning results from functions - in certain cases it ignores “if” clause and wrongly shortcuts the code instead.

You should report this directly to Microsoft, try posting on their DX11 forums:
http://forums.create.msdn.com/forums/76.aspx