Skip to content
Commit 0a62cb44 authored by Evan Cheng's avatar Evan Cheng
Browse files

Add a target lowering hook to control whether it's worthwhile to compress fp constant.

For x86, if sse2 is available, it's not a good idea since cvtss2sd is slower than a movsd load and it prevents load folding. On x87, it's important to shrink fp constant since fldt is very expensive.

llvm-svn: 47931
parent 855d024a
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