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?


That's what the bugpoint tool is for.


Try to build a small test case either with BugPoint or