Displaying 2 results from an estimated 2 matches for "lua_op_loadk_return_ravi".
2015 Feb 23
3
[LLVMdev] Eliminating redundant loads
...ing on building a JIT compiler for Lua (actually a derivative
of Lua). It is currently work in progress.
The approach is to compile Lua bytecodes into LLVM IR.
The IR generated from my code is here (after optimization I should add):
https://github.com/dibyendumajumdar/ravi/blob/master/clang-output/lua_op_loadk_return_ravi.ll
I am using the output from Clang as a guide to generating IR. So I
write small snippets of code in C which are equivalent to Lua
bytecodes - then use Clang to emit the IR. I use this to work out the
IR I need to build.
The C equivalent of the program I am compiling is here:
https://github.com/...
2015 Feb 23
2
[LLVMdev] Eliminating redundant loads
On 22 February 2015 at 22:54, Hal Finkel <hfinkel at anl.gov> wrote:
>> I tried setting the module's DataLayout to the engine's DataLayout.
>> Don't see any improvement.
>> The memcpy() is to perform a struct assign, so I tried replacing that
>> with member by member store.
>> But even then the loads are not being eliminated so I guess the
>>