[NFC] Update loop.decrement.reg intrinsic comment
authorSam Parker <sam.parker@arm.com>
Mon, 13 Jan 2020 09:18:57 +0000 (09:18 +0000)
committerSam Parker <sam.parker@arm.com>
Mon, 13 Jan 2020 09:18:57 +0000 (09:18 +0000)
Note that the intrinsic is now understood by SCEV and that other
optimisations can treat it as a sub.

llvm/include/llvm/IR/Intrinsics.td

index 9d5544b..865e4cc 100644 (file)
@@ -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]>;