[llvm-commits] [llvm] r76198 - in /llvm/trunk: docs/LangRef.html include/llvm-c/Core.h include/llvm/Attributes.h lib/AsmParser/LLLexer.cpp lib/AsmParser/LLParser.cpp lib/AsmParser/LLToken.h lib/CodeGen/PrologEpilogInserter.cpp lib/VMCore/Attribut

Anton Korobeynikov anton at korobeynikov.info
Fri Jul 17 13:28:50 PDT 2009


Eli,

> The way llvm-gcc lowers global register variables is quite broken;
> llvm-gcc should really be rejecting them rather than compiling them to
> almost-working code.
If they are tied to some general purpose registers (which are compile
allocable, etc) - then yes. Otherwise it's perfectly legal. As I said
- consider register variable tied to some "control" register. It's ok
to do loads from and stores to such variable.

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-commits mailing list