1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00
Hal Finkel 60a07f273f [SDAG] Handle non-integer preferred memset types for non-constant values
The existing code in getMemsetValue only handled integer-preferred types when
the fill value was not a constant. Make this more robust in two ways:

  1. If the preferred type is a floating-point value, do the mul-splat trick on
     the corresponding integer type and then bitcast.
  2. If the preferred type is a vector, do the mul-splat trick on one vector
     element, and then build a vector out of them.

Fixes PR22754 (although, we should also turn off use of vector types at -O0).

llvm-svn: 233749
2015-03-31 20:35:26 +00:00
..
2013-03-27 06:52:27 +00:00
2015-01-07 20:54:17 +00:00
2015-01-07 20:54:17 +00:00
2014-10-21 23:01:01 +00:00
2014-10-21 23:01:01 +00:00
2014-12-26 16:42:47 +00:00
2013-04-05 23:29:01 +00:00
2013-08-06 17:03:03 +00:00
2013-04-01 15:58:15 +00:00
2012-08-28 02:10:15 +00:00
2015-03-26 00:57:33 +00:00
2013-04-27 00:43:16 +00:00
2012-12-19 15:49:14 +00:00