LLVM ERROR: Broken module found, compilation aborted!

HI Team,

One of our customer is facing the following error, could you please provide more information on this?

Instruction does not dominate all uses!

%53 = icmp ugt i32 %47, %27

%50 = select i1 %53, i32 128, i32 8, !dbg !268

LLVM ERROR: Broken module found, compilation aborted!

clang-6.0: error: Xtensa-ld command failed with exit code 1 (use -v to see invocation)

CTC++ error 8: Cannot execute C or C++ compiler or compilation failed: 0x100 (error from coverage tool)

ninja: build stopped: subcommand failed.

Compilation is failed due to compiler error, any inputs to understand this error will be helpful?

Thanks,

Mohan Reddy.

This indicates that an instruction is using a value produced by an instruction later in the program, like if you write in C++:

foo(a);
int a = 0;

This can be introduced by a bug in a transformation (most likely) or by the frontend directly.

You have to ask the vendor of your compiler though (it looks like it isn’t a vanilla LLVM).

Best,