aboutsummaryrefslogtreecommitdiff
path: root/devel/llvm12/files/patch-llvm_lib_Analysis_TargetTransformInfo.cpp
blob: 566e910213f5f4b5d907549a533b9f31fd251e8f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- llvm/lib/Analysis/TargetTransformInfo.cpp.orig	2021-06-28 16:23:38 UTC
+++ llvm/lib/Analysis/TargetTransformInfo.cpp
@@ -217,10 +217,7 @@ bool HardwareLoopInfo::isHardwareLoopCandidate(ScalarE
     // Note that this block may not be the loop latch block, even if the loop
     // has a latch block.
     ExitBlock = BB;
-    TripCount = SE.getAddExpr(EC, SE.getOne(EC->getType()));
-
-    if (!EC->getType()->isPointerTy() && EC->getType() != CountType)
-      TripCount = SE.getZeroExtendExpr(TripCount, CountType);
+    ExitCount = EC;
 
     break;
   }