summaryrefslogtreecommitdiffstats
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
commitf56c60b5713c57a3f9223d4ed3d9c88088132fad (patch)
treec057daea92883a5aa6a926ca124a432a6764b385
parent3805d85e38c29d9106c758b63851eb847201f315 (diff)
downloadexternal_llvm-f56c60b5713c57a3f9223d4ed3d9c88088132fad.zip
external_llvm-f56c60b5713c57a3f9223d4ed3d9c88088132fad.tar.gz
external_llvm-f56c60b5713c57a3f9223d4ed3d9c88088132fad.tar.bz2
Add FIXME comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144743 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/ARM/ARMFastISel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp
index cc6a3d4..96e2b70 100644
--- a/lib/Target/ARM/ARMFastISel.cpp
+++ b/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) {