diff options
| author | chenglin.bi <chenglin.bi@linaro.org> | 2022-11-13 19:19:38 +0800 |
|---|---|---|
| committer | chenglin.bi <chenglin.bi@linaro.org> | 2022-11-13 19:20:07 +0800 |
| commit | 84822479006e177c6388ba77acf2c12a73243870 (patch) | |
| tree | fca1f709b5e436784e956eed5370509d87407746 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | e19cb9c57fea7981c206fcbaf9807870de6001a0 (diff) | |
[GlobalISel] Correct constant type in matchReassocConstantInnerLHS
When we match a pattern from m_GCst, the register type could be different from original op. So we can't replace the original op to vreg direct.
This code create a new constant with original op type then replace the original op.
Fix #58906
Reviewed By: arsenm, aemerson
Differential Revision: https://reviews.llvm.org/D137778
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
