aboutsummaryrefslogtreecommitdiff
path: root/devel/llvm12/files/patch-llvm_lib_Analysis_TargetTransformInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'devel/llvm12/files/patch-llvm_lib_Analysis_TargetTransformInfo.cpp')
-rw-r--r--devel/llvm12/files/patch-llvm_lib_Analysis_TargetTransformInfo.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/devel/llvm12/files/patch-llvm_lib_Analysis_TargetTransformInfo.cpp b/devel/llvm12/files/patch-llvm_lib_Analysis_TargetTransformInfo.cpp
new file mode 100644
index 000000000000..566e910213f5
--- /dev/null
+++ b/devel/llvm12/files/patch-llvm_lib_Analysis_TargetTransformInfo.cpp
@@ -0,0 +1,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;
+ }