diff options
author | Sanjay Patel <spatel@rotateright.com> | 2022-10-17 10:12:24 -0400 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2022-10-17 10:47:48 -0400 |
commit | 8d76fbb5f0659bba47a7f38847550a2bc8bbf0c1 (patch) | |
tree | 16cebd3effe18dff405e96866c66f8e7e062814a /clang/lib/Basic/Module.cpp | |
parent | e9b8d704d385472c68a50aa58413e880dd5d9aae (diff) | |
download | llvm-8d76fbb5f0659bba47a7f38847550a2bc8bbf0c1.zip llvm-8d76fbb5f0659bba47a7f38847550a2bc8bbf0c1.tar.gz llvm-8d76fbb5f0659bba47a7f38847550a2bc8bbf0c1.tar.bz2 |
[VectorCombine] fix crashing on match of non-canonical fneg
We can't assume that operand 0 is the negated operand because
the matcher handles "fsub -0.0, X" (and also +0.0 with FMF).
By capturing the extract within the match, we avoid the bug
and make the transform more robust (can't assume that this
pass will only see canonical IR).
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
0 files changed, 0 insertions, 0 deletions