[PATCH] Branch folding causes different code generation at "-O2 -g" and "-O2"
Paul_Robinson at playstation.sony.com
Wed Mar 5 17:36:59 PST 2014
I skimmed CodeGen/X86 for tests containing 'dbg.value' (there are about two dozen) and none of them looked like they were verifying codegen. Some looked like they were making assumptions about codegen but were more interested in verifying correct debug location descriptions (e.g. a stack variable used the right base register, or that a range terminated at the point where a register should have been clobbered).
There is *nothing* set up to generate code with and without debug info, to make sure they are the same.
If we produce two fixes along these lines and it makes sense to put them in the same file, sure we should try to put them in the same file.
I'm not asking for anything general. I'm asking that if we have two tests which are already set up to generate code with and without debug info, we put them in a single file.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-commits