From: Sanjay Patel Date: Mon, 28 Sep 2015 22:00:24 +0000 (+0000) Subject: add a FIXME for a CPU model check that should have an attribute instead X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5a4293ab2353b6e728d6850f36bf229326670248;p=oota-llvm.git add a FIXME for a CPU model check that should have an attribute instead git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248746 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 3725117f852..517295aedbd 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -1785,7 +1785,8 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM, MaxStoresPerMemmoveOptSize = 4; setPrefLoopAlignment(4); // 2^4 bytes. - // Predictable cmov don't hurt on atom because it's in-order. + // A predictable cmov does not hurt on an in-order CPU. + // FIXME: Use a CPU attribute to trigger this, not a CPU model. PredictableSelectIsExpensive = !Subtarget->isAtom(); EnableExtLdPromotion = true; setPrefFunctionAlignment(4); // 2^4 bytes.