Skip to content

Commit 9d3e78e

Browse files
committed
[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.
1 parent 07028b5 commit 9d3e78e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/include/llvm/IR/Intrinsics.td

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1314,7 +1314,9 @@ def int_loop_decrement :
13141314
// maximum number of elements processed in an iteration). Return the remaining
13151315
// number of iterations still to be executed. This is effectively a sub which
13161316
// can be used with a phi, icmp and br to control the number of iterations
1317-
// executed, as usual.
1317+
// executed, as usual. Any optimisations are allowed to treat it is a sub, and
1318+
// it's scevable, so it's the backends responsibility to handle cases where it
1319+
// may be optimised.
13181320
def int_loop_decrement_reg :
13191321
Intrinsic<[llvm_anyint_ty],
13201322
[llvm_anyint_ty, llvm_anyint_ty], [IntrNoDuplicate]>;

0 commit comments

Comments
 (0)