[llvm-dev] union return type (original) (raw)

Julien Schmitt via llvm-dev llvm-dev at lists.llvm.org
Wed Apr 19 01:38:18 PDT 2017


Dear LLVMers,

I need your help to understand my problem:

I'm compiling a code for 2 different targets (x86_64 and sparc). In this code, I define a union which is basically a int32 and a function which returns this union. The compilation of this code produces 2 different IRs :

I guess an optimization pass is called to simplify the return type in first case but i have no idea which one ?

Does anybody have an explanation ?

Thanks!

Julien



More information about the llvm-dev mailing list