Re: Translation validation

2022-09-20 Thread Krister Walfridsson via Gcc
On Wed, 14 Sep 2022, Richard Biener wrote: Note that the folding/peephole optimizations done early can be avoided when you separate opportunities in the source to multiple statements, like change int a, b; a = b + 1 - b; to a = b + 1; a = a - b; note that parts of the folding optimizations

Re: Translation validation

2022-09-13 Thread Richard Biener via Gcc
On Tue, Sep 13, 2022 at 11:33 PM Krister Walfridsson via Gcc wrote: > > I have implemented a tool for translation validation (similar to Alive2 > for LLVM). The tool takes GIMPLE IR for two functions and checks that the > second is a refinement of the first. That is, > * The returned value is th