[llvm] [CodeGenPrepare] Replace deleted ext instr with the promoted value. (PR #71058)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 29 08:15:31 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:
Should we only keep the second case since existing tests do not cover other cases?
https://github.com/llvm/llvm-project/pull/71058
More information about the llvm-commits
mailing list