[llvm] [CodeGenPrepare] Replace deleted ext instr with the promoted value. (PR #71058)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 29 08:17:40 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)
----------------
nikic wrote:
Sounds reasonable.
https://github.com/llvm/llvm-project/pull/71058
More information about the llvm-commits
mailing list