Displaying 3 results from an estimated 3 matches for "g_sdiv".
2017 Nov 09
2
[GlobalISel] [X86] unable to legalize instruction
...;
Subject: Re: [llvm-dev] [GlobalISel] [X86] unable to legalize instruction
Sorry for the late follow-up.
Here is the output with the suggested option:
$ llc -global-isel -pass-remarks-missed="gisel-*" simple_foo.ll
LLVM ERROR: unable to legalize instruction: %vreg17<def>(s32) = G_SDIV %vreg15, %vreg16; (in function: foo)
Thanks for any help/suggestions.
On Wed, Oct 11, 2017 at 8:13 PM, Aditya Nandakumar <proaditya at gmail.com<mailto:proaditya at gmail.com>> wrote:
I believe if you pass(iirc) -pass-remarks-missed=“gisel-*”, it’ll print the instruction it failed to...
2017 Oct 12
1
[GlobalISel] [X86] unable to legalize instruction
I believe if you pass(iirc) -pass-remarks-missed=“gisel-*”, it’ll print the instruction it failed to legalize.
Sent from my iPhone
> On Oct 11, 2017, at 6:44 PM, S. Bharadwaj Yadavalli via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> Thanks for your quick reply.
>
> Here its is:
>
> ===========
>
> ; ModuleID = 'simple_foo.c'
> source_filename
2017 Oct 12
2
[GlobalISel] [X86] unable to legalize instruction
Thanks for your quick reply.
Here its is:
===========
; ModuleID = 'simple_foo.c'
source_filename = "simple_foo.c"
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-apple-macosx10.13.0"
; Function Attrs: noinline nounwind optnone ssp uwtable
define i32 @foo(i32 %a, i32 %b, i32 %c) #0 {
entry:
%retval = alloca i32, align