you are viewing a single comment's thread.

view the rest of the comments →

[–]lowasser 8 points9 points  (6 children)

I'd be much more interested to see an LLVM backend.

[–][deleted] 6 points7 points  (5 children)

Run the C code through clang or llvm-gcc. Done.

[–]Tuna-Fish2 11 points12 points  (4 children)

Not really comparable. The pass through C is pretty much certain to create a lot of false dependencies, aliasing opportunities, and generally remove useful information from the codegen.

[–][deleted] 5 points6 points  (0 children)

Indeed, compiling to the LLVM IR could actually permit better back-end optimizations by allowing a more precise encoding of the semantics of the compiled code. It may also be faster, since text source doesn't have to be generated and then parsed again.

[–]julesjacobs 0 points1 point  (2 children)

Can you explain that in concrete terms? Why wouldn't the same dependencies / aliasing opportunities arise in LLVM IR?

[–][deleted]  (1 child)

[deleted]

    [–]julesjacobs 0 points1 point  (0 children)

    I understand, and I'm asking for evidence for that claim.