[llvm-dev] Function Inlining and undef / poison question

John Regehr via llvm-dev llvm-dev at lists.llvm.org
Thu Jun 15 16:35:55 PDT 2017


> void F(int a)
> {
>     if (a == a) do_stuff();
> }
>
> ....
> main()
> {
>     int x;
>     F(x);
> }

This C program unconditionally executes UB and any translation at all is 
acceptable -- end of story.

John



More information about the llvm-dev mailing list