diff options
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/X86/InstSelectSimple.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/X86/InstSelectSimple.cpp b/llvm/lib/Target/X86/InstSelectSimple.cpp index 7112a8a1527..06cc156e63e 100644 --- a/llvm/lib/Target/X86/InstSelectSimple.cpp +++ b/llvm/lib/Target/X86/InstSelectSimple.cpp @@ -73,12 +73,12 @@ namespace { if (Reg == 0) Reg = CurReg++; + // If this operand is a constant, emit the code to copy the constant into + // the register here... + // if (Constant *C = dyn_cast<Constant>(V)) copyConstantToRegister(C, Reg); - // FIXME: Constants should be thrown into registers here and appended to - // the end of the current basic block! - return Reg; } |