Displaying 3 results from an estimated 3 matches for "folditofptoi".
2016 Jun 30
0
FoldItoFPtoI patch
Hi all,
I have a patch to improve FoldItoFPtoI to utilize known bits instead of just integer width when casting to float and back. It hasn't gotten any attention for about a month.
It is located here: http://reviews.llvm.org/D19178
Thanks.
- CL
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://li...
2016 Apr 15
2
Integer -> Floating point -> Integer cast optimizations
...to{s/u}i({u/s}itofp(X)) --> X or zext(X) or sext(X) or trunc(X)
> // This is safe if the intermediate type has enough bits in its mantissa to
> // accurately represent all values of X. For example, this won't work with
> // i64 -> float -> i64.
> Instruction *InstCombiner::FoldItoFPtoI(Instruction &FI) {
>
> —escha
>
>> On Apr 14, 2016, at 2:29 PM, Carlos Liam via llvm-dev <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> wrote:
>>
>> I'm saying at the IR level, not the C level. IR makes certain assumptions about th...
2016 Apr 14
2
Integer -> Floating point -> Integer cast optimizations
I'm saying at the IR level, not the C level. IR makes certain assumptions about the representation of floating point numbers. Nothing to do with C, I only used it as an example.
- CL
> On Apr 14, 2016, at 4:49 PM, Martin J. O'Riordan <martin.oriordan at movidius.com> wrote:
>
> I don't think that this is correct.
>
> | Let's say we have an int x, and we