diff options
author | annamthomas <anna@azul.com> | 2024-04-10 09:02:23 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-10 09:02:23 -0400 |
commit | 54a9f0007cb4f19d2e9df30405c5027229f5def0 (patch) | |
tree | f5ae97e3c42d0f6ebe992575a086730dc20de695 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 49ef12a08c4c7d7ae4765929e72fe2320a12b08c (diff) | |
download | llvm-54a9f0007cb4f19d2e9df30405c5027229f5def0.zip llvm-54a9f0007cb4f19d2e9df30405c5027229f5def0.tar.gz llvm-54a9f0007cb4f19d2e9df30405c5027229f5def0.tar.bz2 |
[SCEV] Fix BinomialCoefficient Iteration to fit in W bits (#88010)
BinomialCoefficient computes the value of W-bit IV at iteration It of a loop. When W is 1, we can call multiplicative inverse on 0 which triggers an assert since 1b76120.
Since the arithmetic is supposed to wrap if It or K does not fit in W bits, do the truncation into W bits after we do the shift.
Fixes #87798
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions