summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Parker <sam.parker@arm.com>2020-01-13 09:18:57 +0000
committerSam Parker <sam.parker@arm.com>2020-01-13 09:18:57 +0000
commit9d3e78e704fa6201bceb48f45fb061f572c5aa2e (patch)
treef212afa95899e1ea3b700af2d37f89136b90115d
parent07028b5a87803a3a857d6dd6320a0f7de4db23ad (diff)
downloadbcm5719-llvm-9d3e78e704fa6201bceb48f45fb061f572c5aa2e.tar.gz
bcm5719-llvm-9d3e78e704fa6201bceb48f45fb061f572c5aa2e.zip
[NFC] Update loop.decrement.reg intrinsic comment
Note that the intrinsic is now understood by SCEV and that other optimisations can treat it as a sub.
-rw-r--r--llvm/include/llvm/IR/Intrinsics.td4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/include/llvm/IR/Intrinsics.td b/llvm/include/llvm/IR/Intrinsics.td
index 9d5544b8883..865e4ccc9bc 100644
--- a/llvm/include/llvm/IR/Intrinsics.td
+++ b/llvm/include/llvm/IR/Intrinsics.td
@@ -1314,7 +1314,9 @@ def int_loop_decrement :
// maximum number of elements processed in an iteration). Return the remaining
// number of iterations still to be executed. This is effectively a sub which
// can be used with a phi, icmp and br to control the number of iterations
-// executed, as usual.
+// executed, as usual. Any optimisations are allowed to treat it is a sub, and
+// it's scevable, so it's the backends responsibility to handle cases where it
+// may be optimised.
def int_loop_decrement_reg :
Intrinsic<[llvm_anyint_ty],
[llvm_anyint_ty, llvm_anyint_ty], [IntrNoDuplicate]>;
OpenPOWER on IntegriCloud