Default isNarrowingProfitable to false.
authorEvan Cheng <evan.cheng@apple.com>
Fri, 29 May 2009 05:31:40 +0000 (05:31 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 29 May 2009 05:31:40 +0000 (05:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72561 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetLowering.h

index dc66e55a1ff66aa5a3c83f531665a1aa4e326010..163f4c5ae50ebfc9b41de49261474d7f504e16a9 100644 (file)
@@ -1424,7 +1424,7 @@ public:
   /// operations of type VT1 to VT2. e.g. on x86, it's profitable to narrow
   /// from i32 to i8 but not from i32 to i16.
   virtual bool isNarrowingProfitable(MVT VT1, MVT VT2) const {
-    return true;
+    return false;
   }
 
   //===--------------------------------------------------------------------===//