[llvm] [CodeGenPrepare] Replace deleted sext instr with the promoted value. (PR #71058)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 3 08:05:08 PDT 2023


================
@@ -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)
----------------
fhahn wrote:

Are all cases below covered by the one new test?

https://github.com/llvm/llvm-project/pull/71058


More information about the llvm-commits mailing list