Add FIXME comment.
authorChad Rosier <mcrosier@apple.com>
Wed, 16 Nov 2011 00:32:20 +0000 (00:32 +0000)
committerChad Rosier <mcrosier@apple.com>
Wed, 16 Nov 2011 00:32:20 +0000 (00:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144743 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMFastISel.cpp

index cc6a3d4c4d59ef0897c4a8dd59ee89b7b0fbcebc..96e2b7062e620c688adc4b6e17818e25cb154c3b 100644 (file)
@@ -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) {