Displaying 20 results from an estimated 600 matches similar to: "taskpool exhaustion in lld/wasm"
2019 May 08
2
taskpool exhaustion in lld/wasm
It's a wasm testcase that ends up with a 1 mb executable; after 15 minutes I killed it, it doesn't do anything (note that it's waiting on a conditional variable in ALL threads)
On Wed, May 8, 2019, at 14:32, Brian Cain wrote:
> Are you sure it's not just taking "a long time"? If that build machine doesn't have enormous amounts of memory you could end up with a
2018 Jan 11
3
wasm: Bad codegen for i8 comparison
(Currently using a build from november but I didn't see any commit that
could fix this for wasm); With the wasm backend,
%2 = icmp sgt i8 %0, -1
becomes:
i32.const $4=, 255
i32.const $2=, 255
i32.and $3=, $0, $2
i32.const $5=, 255
i32.and $6=, $4, $5
i32.gt_s $7=, $3, $6
Which essentially does
2018 Jan 11
0
wasm: Bad codegen for i8 comparison
Hello,
Can you check whether your build includes r317710
<https://llvm.org/svn/llvm-project/llvm/trunk at 317710>?
Thanks,
Dan
On Thu, Jan 11, 2018 at 12:51 AM, Carlo Kok via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> (Currently using a build from november but I didn't see any commit that
> could fix this for wasm); With the wasm backend,
>
>
> %2 = icmp
2019 Jan 07
2
[LLD] [WASM] wasm/function-index.test failing
I'm seeing the following fail on Linux x86-64, for the last couple weeks
at least. This is from 'ninja check-all'.
-David
FAIL: lld :: wasm/function-index.test (1941 of 1955)
******************** TEST 'lld :: wasm/function-index.test' FAILED ********************
Script:
--
: 'RUN: at line 1'; /build/x86_64/bin/llc -filetype=obj
2020 Aug 10
2
(wasm-ld) Any fundamental problems with linking a shared wasm library statically?
wasm-ld is currently unable to link a shared wasm library (generated with
`wasm-ld --shared`) with .o files and produce a working executable.
I'm curious if there's a fundamental reason for this, or is this simply
something that wasn't needed and could be implemented if needed.
I think this could be done by
- Resolving "GOT.mem" and "GOT.func" imports and
2019 Apr 19
2
Get begin/end of section of lld/wasm
Hi,
when linking with lld/wasm with a symbol like:
@_typeinfo__rtti_te_Module6_d_Test = private constant i8* bitcast (@_rtti_te_Module6_d_Test to i8*), section "ELRTTLRR", align 4
How do I get the start and end of the ELRTTLRR section? LLD doesn't seem to emit that info, nor does it define a __start_ELRTTLRR/__stop_ELRTTLRR section?
2018 Nov 17
2
Generating exported wasm functions
Using LLVM v5, my Cone compiler (https://github.com/jondgoodwin/cone)
automatically directly generated all functions as named and exported for
both wasm text and binary files (not using clang/lld etc, but using the
API).
Upgrading to LLVM v7, generated wasm object files now fail, exhibiting
markedly different behavior, behavior that varies between the text and
binary files. For example, the
2019 Jan 08
4
[LLD] [WASM] wasm/function-index.test failing
I cannot reproduce this error, but this could be real.
David, is this reproducible every time or is this flaky?
On Mon, Jan 7, 2019 at 5:03 PM Heejin Ahn via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> Hello David,
>
> I use x86_64 and it works on my machine. I also can't find this error on
> LLVM buildbot page. I'd appreciate if you help me reproduce the problem.
2019 Oct 15
4
Wasm, start function, and default globals
Apologies if there is a better forum for these questions. Please redirect me if so.
I’ve been using the clang/wasm-ld tools to experiment with some basic examples, and there’s a couple things I’m wrestling with.
1) How to denote a function as the “start” function (https://webassembly.github.io/spec/core/binary/modules.html#start-section)
2) How to avoid the defaulted __heap_base global.
I’ve
2019 Jan 08
2
[LLD] [WASM] wasm/function-index.test failing
Are you using static linking, -DBUILD_SHARED_LIBS, or
-DLLVM_LINK_LLVM_DYLIB?
On Tue, Jan 8, 2019 at 7:21 AM David Greene via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> Rui Ueyama <ruiu at google.com> writes:
>
> > I cannot reproduce this error, but this could be real.
> >
> > David, is this reproducible every time or is this flaky?
>
> It's
2016 Oct 19
2
Assertion fail/crash in X86FrameLowering::GetFrameIndexReference SEH
I think r262546 introduced the assumption that allocas are used exactly
once with catchpad. It seems easy to fix, though.
On Mon, Oct 17, 2016 at 11:51 PM, Carlo Kok via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> This turned out to be related to reusing the local used in the catchpad,
> for example given the following c++ code:
>
> extern void rthrow();
>
> int
2017 Feb 21
3
[lld] elf linker creates undefined empty symbol
Hi,
When running my own lld generated library/executable I'm getting:
LD_LIBRARY_PATH=. ./ConsoleApplication347
./ConsoleApplication347: symbol lookup error: ./ConsoleApplication347:
undefined symbol:
(theres nothing after undefined symbol)
How can I figure out what's I'm doing wrong?
Full log:
https://gist.github.com/carlokok/1dd510a16e1922271b520f1c00b14656
readelf -s for
2016 Oct 17
2
Assertion fail/crash in X86FrameLowering::GetFrameIndexReference SEH
Hi,
I'm gettign an assertion fail/crash in
X86FrameLowering::GetFrameIndexReference when compiling the following
bitcode:
https://gist.github.com/carlokok/868cddebeb9acc8ccbac6253de0480b0
I tried removing the llvm.frameaddres calls but that's not it, where can
I start looking for what my mistake here is? Code seems to verify just fine.
; #0 0x00e1afe8
2017 Apr 26
2
no-frame-pointer-elim & optimized
Hi,
I have a function with:
attributes #2 = { "no-frame-pointer-elim"="true"
"no-frame-pointer-elim-non-leaf" }
Yet when compiling it generates:
https://gist.github.com/carlokok/7c3c98d2fd8c966671f40a5ad94f19d3
(Note how it checks fFinalizer before setting up ebp).
It also has a:
.loc 36 195 7 prologue_end
before this happens
How can I get llvm to do the frame
2017 Sep 18
5
Interleaved debug info on arm
When compiling code with lld -O0 --lto-O0 --eh-frame-hdr I get strange interleaved line info all
over the place:
...
0x00000000000595ac 22 11 1 0 0 is_stmt
0x00000000000595bc 25 7 1 0 0 is_stmt <<<
0x00000000000595c0 22 11 1 0 0 is_stmt
0x00000000000595c4 25 7 1 0 0 is_stmt <<<
0x00000000000595c8 26 7 1 0 0 is_stmt
but the code only has 1 reference to line 25 and the
2018 Apr 03
2
llvm.localsescape/recover
I 'm using locals recover to have a seh finally in a separate function:
%1 = alloca i8*, align 4
store i8* %0, i8** %1
%2 = alloca i32
store i32 0, i32* %2
call void (...) @llvm.localescape(i8** %1, i32* %2)
call my finaly like:
%loctmp = call i8* @llvm.localaddress()
call void @"TEST$Fin0"(i8 0, i8* %loctmp)
and recover it with:
%2 = call i8* @llvm.localrecover(i8*
2018 Feb 25
3
Heap Exhaustion during 'DAGCombiner::Run'
Hi LLVM-Devs,
I am in the process of updating our out-of-tree implementation from v5.0 to
v6.0 RC3, and while it builds and mostly runs, I am having trouble with a
small number of tests where the 'WorklistMap' in 'DAGCombiner::Run' never
becomes empty. This is resulting in a runaway state of continuous heap
allocation until the process exhausts all system memory.
But I can't
2018 Mar 01
0
Heap Exhaustion during 'DAGCombiner::Run'
Martin:
I suspect this is an issue with post-DAG legalization store merging in the
DAGCombiner. If you have a custom lowered type the DAGCombiner may end up
merging a set of stores and immediately splitting them up in legalization.
You should be able to disable this pass universally by overriding
mergeStoresAfterLegalization() or conditionally for cases that shouldn't
match with
2019 May 08
2
Where to send emails with questions about WebAssembly?
Okay, so where should I send questions for WebAssembly? Is it this mailing list or a different one? I want to ask about how to compile WebAssembly modules with Clang directly, without Emscripten, for situations like what I have currently where I have a problem with generating WebAssembly and/or JavaScript glue code (I have a problem with the gen_struct_info stuff; I asked on the Emscripten
2018 Mar 06
2
Heap Exhaustion during 'DAGCombiner::Run'
We discovered what is happening.
SDAGCombiner essentially looks at various combinations of nodes to do with vectors, and when it can, it creates a vector shuffle. The problem is, that our vector shuffle lowering builds new trees with vector element, or vector sub-vector insert sequences. The generic DAGCombiner, reconstructs these into a new shuffle, and so the loop continues - we reduce it,