Make the popcnt support enums and methods have more clear names and
[oota-llvm.git] / lib / Transforms / Scalar / LoopIdiomRecognize.cpp
index 20eec91cf904ad6a260886bdb423408b7f654a4e..59109a786564ba825947db5d27fcbdaf2e4df7b1 100644 (file)
@@ -311,7 +311,7 @@ NclPopcountRecognize::NclPopcountRecognize(LoopIdiomRecognize &TheLIR):
 
 bool NclPopcountRecognize::preliminaryScreen() {
   const TargetTransformInfo *TTI = LIR.getTargetTransformInfo();
-  if (TTI->getPopcntHwSupport(32) != TargetTransformInfo::Fast)
+  if (TTI->getPopcntSupport(32) != TargetTransformInfo::PSK_FastHardware)
     return false;
 
   // Counting population are usually conducted by few arithmetic instrutions.