aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorannamthomas <anna@azul.com>2024-04-10 09:02:23 -0400
committerGitHub <noreply@github.com>2024-04-10 09:02:23 -0400
commit54a9f0007cb4f19d2e9df30405c5027229f5def0 (patch)
treef5ae97e3c42d0f6ebe992575a086730dc20de695 /flang/lib/Frontend/CompilerInvocation.cpp
parent49ef12a08c4c7d7ae4765929e72fe2320a12b08c (diff)
downloadllvm-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