Andrew Haley
2009-Jan-20 10:10 UTC
[LLVMdev] Load from abs address generated bad code on LLVM 2.4
Chris Lattner wrote:> On Jan 19, 2009, at 7:55 AM, Andrew Haley wrote: > >> This is x86_64. I have a problem where an absolute memory load >> The current LLVM trunk does not have this bug. This seems quite a >> nasty >> bug; is there any chance of a bug-fix release for LLVM 2.4, or >> should I >> just use LLVM trunk until LLVM 2.5 ? > > As others have pointed out, using a global and addglobalmapping is a > great workaround for the problem.Thanks.> We generally don't do "dot" releases, since we have a short release > cycle anyway. The 2.5 release process is slated to start this week.Mmm, but the problem is that interfaces keep changing, so simply upgrading to the latest release isn't possible. Even the tiny test case I posted doesn't work with the latest version: there were changes needed to get it to compile. Also, I can no longer figure out how to turn on debugging dumps in the JIT. The simple DebugFlag = true; CurrentDebugType = "x86-emitter"; no longer works, and there seems to be no replacement for it. Andrew.
Chris Lattner
2009-Jan-20 22:38 UTC
[LLVMdev] Load from abs address generated bad code on LLVM 2.4
On Jan 20, 2009, at 2:10 AM, Andrew Haley wrote:> Chris Lattner wrote: >> On Jan 19, 2009, at 7:55 AM, Andrew Haley wrote: >> >>> This is x86_64. I have a problem where an absolute memory load >>> The current LLVM trunk does not have this bug. This seems quite a >>> nasty >>> bug; is there any chance of a bug-fix release for LLVM 2.4, or >>> should I >>> just use LLVM trunk until LLVM 2.5 ? >> >> As others have pointed out, using a global and addglobalmapping is a >> great workaround for the problem. > > Thanks. > >> We generally don't do "dot" releases, since we have a short release >> cycle anyway. The 2.5 release process is slated to start this week. > > Mmm, but the problem is that interfaces keep changing, so simply > upgrading to the latest release isn't possible. Even the tiny > test case I posted doesn't work with the latest version: there > were changes needed to get it to compile. Also, I can no longer > figure out how to turn on debugging dumps in the JIT. The simple > > DebugFlag = true; > CurrentDebugType = "x86-emitter"; > > no longer works, and there seems to be no replacement for it.That should work fine, just use "jit" instead of "x86-emitter" as the debug type. -Chris
Andrew Haley
2009-Jan-21 12:15 UTC
[LLVMdev] Load from abs address generated bad code on LLVM 2.4
Chris Lattner wrote:> On Jan 20, 2009, at 2:10 AM, Andrew Haley wrote: > >> Chris Lattner wrote: >>> On Jan 19, 2009, at 7:55 AM, Andrew Haley wrote: >>> >>>> This is x86_64. I have a problem where an absolute memory load >>>> The current LLVM trunk does not have this bug. This seems quite a >>>> nasty >>>> bug; is there any chance of a bug-fix release for LLVM 2.4, or >>>> should I >>>> just use LLVM trunk until LLVM 2.5 ? >>> As others have pointed out, using a global and addglobalmapping is a >>> great workaround for the problem. >> Thanks. >> >>> We generally don't do "dot" releases, since we have a short release >>> cycle anyway. The 2.5 release process is slated to start this week. >> Mmm, but the problem is that interfaces keep changing, so simply >> upgrading to the latest release isn't possible. Even the tiny >> test case I posted doesn't work with the latest version: there >> were changes needed to get it to compile. Also, I can no longer >> figure out how to turn on debugging dumps in the JIT. The simple >> >> DebugFlag = true; >> CurrentDebugType = "x86-emitter"; >> >> no longer works, and there seems to be no replacement for it. > > That should work fine, just use "jit" instead of "x86-emitter" as the > debug type.That's impossible: CurrentDebugType is now private; it appears nowhere in the installed headers. I can't find any public interface to allow a JIT to set it. Andrew.
Apparently Analagous Threads
- [LLVMdev] Load from abs address generated bad code on LLVM 2.4
- [LLVMdev] Load from abs address generated bad code on LLVM 2.4
- [LLVMdev] Load from abs address generated bad code on LLVM 2.4
- [LLVMdev] Load from abs address generated bad code on LLVM 2.4
- [LLVMdev] Load from abs address generated bad code on LLVM 2.4