[llvm-dev] Virtual register defs don't dominate all uses
Josh Sharp via llvm-dev
llvm-dev at lists.llvm.org
Tue Apr 30 20:52:06 PDT 2019
Thank you for the response.
What's the difference between running clang with the -emit-llvm option vs running it with the --target=<mytarget> option.
The error I described happens only if I run: clang --target=<mytarget> <inputfile>.c
However if I do clang -emit-llvm <inputfile>.c -o <outputfile>.bc
and then llc -march=<mytarget> <outputfile>.bc, no error occurs
From: qcolombet at apple.com <qcolombet at apple.com> on behalf of Quentin Colombet <qcolombet at apple.com>
Sent: Tuesday, April 16, 2019 3:05 PM
To: Josh Sharp
Cc: via llvm-dev
Subject: Re: [llvm-dev] Virtual register defs don't dominate all uses
That means that at least one use of the reporter virtual register happens before its definition.
… = V1 <—— V1 is not defined here
V1 = … <— V1 def does not dominate all its use
On Apr 16, 2019, at 2:47 PM, Josh Sharp via llvm-dev <llvm-dev at lists.llvm.org<mailto:llvm-dev at lists.llvm.org>> wrote:
I'm getting this error: "Virtual register defs don't dominate all uses". It comes from llvm/lib/CodeGen/MachineVerifier.cpp:2138
I don't understand what it means. Does anyone know?
LLVM Developers mailing list
llvm-dev at lists.llvm.org<mailto:llvm-dev at lists.llvm.org>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev