[all-commits] [llvm/llvm-project] 848224: [GlobalISel] Correct constant type in matchReassoc...
chenglin.bi via All-commits
all-commits at lists.llvm.org
Sun Nov 13 03:20:27 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 84822479006e177c6388ba77acf2c12a73243870
https://github.com/llvm/llvm-project/commit/84822479006e177c6388ba77acf2c12a73243870
Author: chenglin.bi <chenglin.bi at linaro.org>
Date: 2022-11-13 (Sun, 13 Nov 2022)
Changed paths:
M llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
M llvm/test/CodeGen/AArch64/GlobalISel/prelegalizercombiner-ptradd-chain.mir
Log Message:
-----------
[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
More information about the All-commits
mailing list