Displaying 3 results from an estimated 3 matches for "ptrtointexpr".
2008 May 17
0
[LLVMdev] More info, was Help needed after hiatus
...The issue starts with the lines:
add i32 %2, 2 ; <i32>:3 [#uses=1]
mul i32 %3, ptrtoint (i32* getelementptr (i32* null, i32 1) to
i32) ; <i32>:4 [#uses=1]
Roughly, the multiplication gets distributed, resulting in something
like (loaded value) * (ptrtointexpr) + 2 * (ptrtointexpr). This gets
matched by the match, which then reverses the transformation. This,
of course, gets matched by the code to distribute the multiply,
resulting in a never-ending cycle.
A side note: I know I've seen suggestions that "ptrtoint (i32*
getelementptr (i32* null...
2008 May 17
2
[LLVMdev] More info, was Help needed after hiatus
Hi,
I know my last question was very vague (i.e. "It stopped working, what
went wrong?"), so here is a little more concrete example:
If I run the optimizer (opt) on this code snippet with -std-compile-opts
the optimizer hangs.
; ModuleID = 'test.ubc'
target datalayout =
2008 May 14
3
[LLVMdev] Help needed after hiatus
Hi,
I've restarted my Elsa/LLVM project after three months of having real
life intrude. I upgraded my LLVM source to the current trunk. I had to
make a few changes to my source, e.g. LLVMFoldingBuilder became
IRBuilder and several instances of "new" became "Create".
Now, a test case that previously succeeded fails. I run the following
script:
#!/bin/sh
if [ 1 -ne 0 ]