diff options
author | Luke Lau <luke@igalia.com> | 2025-10-20 18:39:16 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-10-20 10:39:16 +0000 |
commit | 9fe1f29541109ac10e1399deb85da0507135f836 (patch) | |
tree | 2a6404c27a61b6a1ae96abc65cfe4e75add2ce60 /clang/lib/AST/ByteCode/Program.cpp | |
parent | 94647eea7fc0fcdf1c953b8ff6bd6ef9981d7890 (diff) | |
download | llvm-9fe1f29541109ac10e1399deb85da0507135f836.zip llvm-9fe1f29541109ac10e1399deb85da0507135f836.tar.gz llvm-9fe1f29541109ac10e1399deb85da0507135f836.tar.bz2 |
[VPlan] Set flags when constructing zexts using VPWidenCastRecipe (#164198)
createWidenCast doesn't set the flag type, so when we simplify trunc
(zext nneg x) -> zext x we would hit an assertion in CSE that the flag
types don't match with other VPWidenCastRecipes that weren't simplified.
This fixes it the same way trunc flags are handled too.
As an aside I think it should be correct to preserve the nneg flag in
this case since the input operand is still non-negative after the
transform. But that's left to another PR.
Fixes https://github.com/llvm/llvm-project/issues/164171
Diffstat (limited to 'clang/lib/AST/ByteCode/Program.cpp')
0 files changed, 0 insertions, 0 deletions