aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/InlineFunction.cpp
diff options
context:
space:
mode:
authorYoungsuk Kim <youngsuk.kim@hpe.com>2024-10-17 10:47:44 -0400
committerGitHub <noreply@github.com>2024-10-17 10:47:44 -0400
commitcaa32e6d6fec4c77d47f85d866e23b4c0e2501a0 (patch)
treeedd1a23bca41c7e9468e216ba45a24f22aa1d553 /llvm/lib/Transforms/Utils/InlineFunction.cpp
parent8b6764fdc0c9550e3d8033006a4acfb466f74840 (diff)
downloadllvm-caa32e6d6fec4c77d47f85d866e23b4c0e2501a0.zip
llvm-caa32e6d6fec4c77d47f85d866e23b4c0e2501a0.tar.gz
llvm-caa32e6d6fec4c77d47f85d866e23b4c0e2501a0.tar.bz2
[llvm][LSR] Fix where invariant on ScaledReg & Scale is violated (#112576)
Comments attached to the `ScaledReg` field of `struct Formula` explains that, `ScaledReg` must be non-null when `Scale` is non-zero. This fixes up a code path where this invariant is violated. Also, add an assert to ensure this invariant holds true. Without this patch, compiler aborts with the attached test case. Fixes #76504
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
0 files changed, 0 insertions, 0 deletions