Skip to content

Commit f4be2b6

Browse files
committed
[CodeGenPrepare] Remove uncovered code.
1 parent 2c9970d commit f4be2b6

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

llvm/lib/CodeGen/CodeGenPrepare.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3078,12 +3078,8 @@ struct ExtAddrMode : public TargetLowering::AddrMode {
30783078
// E.g., SExt insts may be promoted and deleted. We should replace them with
30793079
// the promoted values.
30803080
void replaceWith(Value *From, Value *To) {
3081-
if (BaseReg == From)
3082-
BaseReg = To;
30833081
if (ScaledReg == From)
30843082
ScaledReg = To;
3085-
if (OriginalValue == From)
3086-
OriginalValue = To;
30873083
}
30883084

30893085
FieldName compare(const ExtAddrMode &other) {

0 commit comments

Comments
 (0)