Displaying 2 results from an estimated 2 matches for "6e65f4d0".
Did you mean:
6e2544d0
2009 Jan 28
0
[LLVMdev] Copy Instructions?
On Tue, Jan 27, 2009 at 2:54 PM, David Greene <dag at cray.com> wrote:
> How do I go about creating the copy t = x? I don't want to use an add with a
> zero constant because it may not be optimized in all circustations (floating
> point, for example).
You can use a no-op bitcast for scalars, but there isn't any reliable
way to do it for all first-class values. That said,
2009 Jan 27
4
[LLVMdev] Copy Instructions?
There is no register-to-register copy instructions in LLVM. I've found a bug
in mem2reg (LLVM 2.3 but it doesn't appear to be fixed in trunk either) and a
copy instruction seems to be the easiest way to fix it.
Consider this code coming into the RenamePass phase of mem2reg.
"*" in the phi means we haven't added that incoming value yet.
// x.0 = ...
//