aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/X86/InstSelectSimple.cpp6
-rw-r--r--lib/Target/X86/X86ISelSimple.cpp6
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/Target/X86/InstSelectSimple.cpp b/lib/Target/X86/InstSelectSimple.cpp
index 7112a8a152..06cc156e63 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<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;
}
diff --git a/lib/Target/X86/X86ISelSimple.cpp b/lib/Target/X86/X86ISelSimple.cpp
index 7112a8a152..06cc156e63 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<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;
}