[llvm] [CodeGenPrepare] Replace deleted sext instr with the promoted value. (PR #71058)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 7 05:19:38 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:
Do any of the duplicates provide a test case for the other cases?
https://github.com/llvm/llvm-project/pull/71058
More information about the llvm-commits
mailing list