diff options
author | Sanjay Patel <spatel@rotateright.com> | 2021-04-07 12:11:23 -0400 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2021-04-07 12:18:12 -0400 |
commit | 1894c6c59e37b47c284f2a5ebb92b73911e71e38 (patch) | |
tree | 55a7a3cea71f008b7ce247031a74923059cd9d46 /llvm/lib/CodeGen/MachineModuleInfo.cpp | |
parent | 920c0f7e09e2a55a800a181fb9bfe296a8733c89 (diff) | |
download | llvm-1894c6c59e37b47c284f2a5ebb92b73911e71e38.zip llvm-1894c6c59e37b47c284f2a5ebb92b73911e71e38.tar.gz llvm-1894c6c59e37b47c284f2a5ebb92b73911e71e38.tar.bz2 |
[InstCombine] avoid infinite loop from partial undef vectors
This fixes the examples from
D99674 and
https://llvm.org/PR49878
The matchers succeed on partial undef/poison vector constants,
but the transform creates a full 'not' (-1) constant, so it
would undo a demanded vector elements change triggered by the
extractelement.
Differential Revision: https://reviews.llvm.org/D100044
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
0 files changed, 0 insertions, 0 deletions