diff options
| author | Ramkumar Ramachandra <r@artagnon.com> | 2024-05-08 09:47:55 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-08 09:47:55 +0100 |
| commit | 57b9c15227ec15a5e2abf4587d7d0ad536cff9e6 (patch) | |
| tree | be12282d90705357162537cf7ee560acc245e817 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 9ef28cf88ca6e45c3ecb75c649463f8797db68d2 (diff) | |
VectorCombine: fix logical error after m_Trunc match (#91201)
The matcher m_Trunc() matches an Operator with a given Opcode, which
could either be an Instruction or ConstExpr.
VectorCombine::foldTruncFromReductions() incorrectly assumes that the
pattern matched is always an Instruction, and attempts a cast. Fix this.
Fixes #88796.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
