aboutsummaryrefslogtreecommitdiff
path: root/devel/llvm12/files/patch-llvm_include_llvm_Analysis_TargetTransformInfo.h
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2021-10-22 11:42:42 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2021-10-22 11:42:42 +0000
commitab467871db4051ab0162256fccdfe872ae40b959 (patch)
tree853ec25daca352b8d900fe732e0da264d9d5cf92 /devel/llvm12/files/patch-llvm_include_llvm_Analysis_TargetTransformInfo.h
parent531a51cc368cf2f53fd21923532964ba96965474 (diff)
downloadports-ab467871db4051ab0162256fccdfe872ae40b959.tar.gz
ports-ab467871db4051ab0162256fccdfe872ae40b959.zip
devel/llvm12: fix/workaround liblzma incorrect compress/uncompress
Apply https://reviews.freebsd.org/D31804 Fixes miscompiling liblzma. Submitted by: adalava
Diffstat (limited to 'devel/llvm12/files/patch-llvm_include_llvm_Analysis_TargetTransformInfo.h')
-rw-r--r--devel/llvm12/files/patch-llvm_include_llvm_Analysis_TargetTransformInfo.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/devel/llvm12/files/patch-llvm_include_llvm_Analysis_TargetTransformInfo.h b/devel/llvm12/files/patch-llvm_include_llvm_Analysis_TargetTransformInfo.h
new file mode 100644
index 000000000000..07cad777ea24
--- /dev/null
+++ b/devel/llvm12/files/patch-llvm_include_llvm_Analysis_TargetTransformInfo.h
@@ -0,0 +1,10 @@
+--- llvm/include/llvm/Analysis/TargetTransformInfo.h.orig 2021-06-28 16:23:38 UTC
++++ llvm/include/llvm/Analysis/TargetTransformInfo.h
+@@ -94,6 +94,7 @@ struct HardwareLoopInfo {
+ Loop *L = nullptr;
+ BasicBlock *ExitBlock = nullptr;
+ BranchInst *ExitBranch = nullptr;
++ const SCEV *ExitCount = nullptr;
+ const SCEV *TripCount = nullptr;
+ IntegerType *CountType = nullptr;
+ Value *LoopDecrement = nullptr; // Decrement the loop counter by this