need help to log optimization bug

Hi experts,

I found a clang optimization bug when building release version of our codebase.
The code is an inline function that does some calculation, in optimized build, it seems the generated code uses an incorrect register, which results the code calculation gets wrong result. I’m planning to submit a bug report fot this.

My problem is the issue is stable reproduced, but it is deep in our code, which involves several classes and inline functions. Do you have any suggestions or guideline on how to report issue like this?

Thanks,

That's what the bugpoint tool is for.
http://llvm.org/docs/Bugpoint.html
http://quetzalcoatal.blogspot.com/2012/03/how-to-use-bugpoint.html

Sebastian

Try to build a small test case either with BugPoint or
delta.trigris.org.

Joerg