[llvm-dev] Implementing a proposed InstCombine optimization
Carlos Liam via llvm-dev
llvm-dev at lists.llvm.org
Thu Apr 7 10:23:08 PDT 2016
Resending because I keep forgetting to 'reply all' - sorry escha.
Is there a way to compare the output of machine code generated from the same IR from different backends? An emulator or such?
> On Apr 7, 2016, at 1:09 PM, escha at apple.com wrote:
>> On Apr 7, 2016, at 10:06 AM, Carlos Liam <carlos at aarzee.me> wrote:
>> Alive-NJ (https://github.com/rutgers-apl/alive-nj) verifies the optimization as correct for half, single and double floating-point types:
> The problem is that it proves it’s correct on a certain set of semantics, but not all targets will share those semantics, which is something you have to be very careful about with floating point. In some cases “correct under IEEE” means “correct under non-IEEE”, but in other cases it doesn’t.
More information about the llvm-dev