We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77f8e43 commit 8479b9dCopy full SHA for 8479b9d
llvm/lib/CodeGen/CodeGenPrepare.cpp
@@ -2634,6 +2634,9 @@ struct ExtAddrMode : public TargetLowering::AddrMode {
2634
void print(raw_ostream &OS) const;
2635
void dump() const;
2636
2637
+ // Replace From in ExtAddrMode with To.
2638
+ // E.g., SExt insts may be promoted and deleted. We should replace them with
2639
+ // the promoted values.
2640
void replaceWith(Value *From, Value *To) {
2641
if (BaseReg == From)
2642
BaseReg = To;
0 commit comments