Displaying 3 results from an estimated 3 matches for "truncinv".
2011 Jan 28
1
[LLVMdev] How to change the type of an Instruction?
...serting a trunc right after the definition of a small variable, and
inverse truncation right after the uses of this variable. I am doing this
for correctness. So, if I have something like:
a = b + c
...
x = a + y
...
w = a - z
Then I change the program into:
a = b + c
a_small = trunc(a)
...
a1 = truncInv(a_small)
x = a1 + y
...
a2 = truncInv(a_small)
w = a2 - z
Again, I did it like this just to check for correctness. But, even if I
optimize the insertion of truncs, it seems that the end code will not be
good, and I am afraid I will miss many optimization opportunities. Like, one
of the first thing...
2011 Jan 24
0
[LLVMdev] How to change the type of an Instruction?
On 1/24/11 12:05 PM, Douglas do Couto Teixeira wrote:
>
>
> On Mon, Jan 24, 2011 at 3:01 PM, Nick Lewycky <nicholas at mxc.ca
> <mailto:nicholas at mxc.ca>> wrote:
>
> On 01/24/2011 04:41 AM, Douglas do Couto Teixeira wrote:
>
> Hi,
>
> Nick, thanks for the reply.
> I still have a problem: I only need to "clone" an
2011 Jan 24
3
[LLVMdev] How to change the type of an Instruction?
On Mon, Jan 24, 2011 at 3:01 PM, Nick Lewycky <nicholas at mxc.ca> wrote:
> On 01/24/2011 04:41 AM, Douglas do Couto Teixeira wrote:
>
>> Hi,
>>
>> Nick, thanks for the reply.
>> I still have a problem: I only need to "clone" an Instruction, changing
>> its type. That is, I would like to keep all characteristics of the old
>> Instruction