summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMFastISel.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2011-11-16 00:32:20 +0000
committerChad Rosier <mcrosier@apple.com>2011-11-16 00:32:20 +0000
commitaf13d767a2627c31b55ba17e7439324f86e4f4c6 (patch)
treeb3259fb7c76d9d0f41663edd12919502ae39c6f5 /llvm/lib/Target/ARM/ARMFastISel.cpp
parent81ac842151e26d5c64cd744b654d199754155c2d (diff)
downloadbcm5719-llvm-af13d767a2627c31b55ba17e7439324f86e4f4c6.tar.gz
bcm5719-llvm-af13d767a2627c31b55ba17e7439324f86e4f4c6.zip
Add FIXME comment.
llvm-svn: 144743
Diffstat (limited to 'llvm/lib/Target/ARM/ARMFastISel.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMFastISel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMFastISel.cpp b/llvm/lib/Target/ARM/ARMFastISel.cpp
index cc6a3d4c4d5..96e2b7062e6 100644
--- a/llvm/lib/Target/ARM/ARMFastISel.cpp
+++ b/llvm/lib/Target/ARM/ARMFastISel.cpp
@@ -1303,6 +1303,8 @@ bool ARMFastISel::ARMEmitCmp(const Value *Src1Value, const Value *Src2Value,
int Imm = 0;
bool UseImm = false;
bool isNegativeImm = false;
+ // FIXME: At -O0 we don't have anything that canonicalizes operand order.
+ // Thus, Src1Value may be a ConstantInt, but we're missing it.
if (const ConstantInt *ConstInt = dyn_cast<ConstantInt>(Src2Value)) {
if (SrcVT == MVT::i32 || SrcVT == MVT::i16 || SrcVT == MVT::i8 ||
SrcVT == MVT::i1) {
OpenPOWER on IntegriCloud