[llvm-commits] [llvm] r81171 - in /llvm/trunk: lib/CodeGen/SelectionDAG/FastISel.cpp test/CodeGen/X86/fast-isel-fneg.ll

Chris Lattner clattner at apple.com
Mon Sep 7 16:57:54 PDT 2009


On Sep 7, 2009, at 4:47 PM, Dan Gohman wrote:

> Author: djg
> Date: Mon Sep  7 18:47:14 2009
> New Revision: 81171
>
> URL: http://llvm.org/viewvc/llvm-project?rev=81171&view=rev
> Log:
> Fix a thinko: When lowering fneg with xor, bitcast the operands
> from floating-point to integer first, and bitcast the result
> back to floating-point. Previously, this test was passing by
> falling back to SelectionDAG lowering. The resulting code isn't
> as nice, but it's correct and CodeGen now stays on the fast path.

Why not lower to ISD::FNEG?

-Chris




More information about the llvm-commits mailing list