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 e891596 commit e076077Copy full SHA for e076077
llvm/lib/CodeGen/CodeGenPrepare.cpp
@@ -3074,6 +3074,9 @@ struct ExtAddrMode : public TargetLowering::AddrMode {
3074
void print(raw_ostream &OS) const;
3075
void dump() const;
3076
3077
+ // Replace From in ExtAddrMode with To.
3078
+ // E.g., SExt insts may be promoted and deleted. We should replace them with
3079
+ // the promoted values.
3080
void replaceWith(Value *From, Value *To) {
3081
if (BaseReg == From)
3082
BaseReg = To;
0 commit comments