Skip to content
Commit 93b1f12a authored by Shuxin Yang's avatar Shuxin Yang
Browse files

Disable some unsafe-fp-math DAG-combine transformation after legalization.

For instance, following transformation will be disabled:
    x + x + x => 3.0f * x;

The problem of these transformations is that it introduces a FP constant, which
following Instruction-Selection pass cannot handle.

Reviewed by Nadav, thanks a lot!

rdar://13445387

llvm-svn: 177933
parent 4d8ad55c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment