From: Chris Lattner Date: Sun, 27 Oct 2002 21:23:43 +0000 (+0000) Subject: Remove dead fixme X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6f8fd25697c2aec8c915c34f3c90ee52b77b8f56;p=oota-llvm.git Remove dead fixme git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4300 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/InstSelectSimple.cpp b/lib/Target/X86/InstSelectSimple.cpp index 7112a8a1527..06cc156e63e 100644 --- a/lib/Target/X86/InstSelectSimple.cpp +++ b/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(V)) copyConstantToRegister(C, Reg); - // FIXME: Constants should be thrown into registers here and appended to - // the end of the current basic block! - return Reg; } diff --git a/lib/Target/X86/X86ISelSimple.cpp b/lib/Target/X86/X86ISelSimple.cpp index 7112a8a1527..06cc156e63e 100644 --- a/lib/Target/X86/X86ISelSimple.cpp +++ b/lib/Target/X86/X86ISelSimple.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(V)) copyConstantToRegister(C, Reg); - // FIXME: Constants should be thrown into registers here and appended to - // the end of the current basic block! - return Reg; }