[llvm] [CodeGenPrepare] Replace deleted sext instr with the promoted value. (PR #71058)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 8 02:50:43 PST 2025
================
@@ -2634,6 +2634,15 @@ struct ExtAddrMode : public TargetLowering::AddrMode {
void print(raw_ostream &OS) const;
void dump() const;
+ void replaceWith(Value *From, Value *To) {
+ if (BaseReg == From)
----------------
dtcxzyw wrote:
These two test cases only cover `if (ScaledReg == From) ScaledReg = To;`.
https://github.com/llvm/llvm-project/pull/71058
More information about the llvm-commits
mailing list