File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -699,6 +699,7 @@ uint32_t GVNPass::ValueTable::lookupOrAdd(Value *V) {
699699 case Instruction::FPTrunc:
700700 case Instruction::FPExt:
701701 case Instruction::PtrToInt:
702+ case Instruction::PtrToAddr:
702703 case Instruction::IntToPtr:
703704 case Instruction::AddrSpaceCast:
704705 case Instruction::BitCast:
Original file line number Diff line number Diff line change 44define i64 @ptrtoaddr_same (ptr %p ) {
55; CHECK-LABEL: define i64 @ptrtoaddr_same(
66; CHECK-SAME: ptr [[P:%.*]]) {
7- ; CHECK-NEXT: [[I:%.*]] = ptrtoaddr ptr [[P]] to i64
87; CHECK-NEXT: [[J:%.*]] = ptrtoaddr ptr [[P]] to i64
9- ; CHECK-NEXT: [[SUB:%.*]] = sub i64 [[I]], [[J]]
10- ; CHECK-NEXT: ret i64 [[SUB]]
8+ ; CHECK-NEXT: ret i64 0
119;
1210 %i = ptr toaddr ptr %p to i64
1311 %j = ptr toaddr ptr %p to i64
You can’t perform that action at this time.
0 commit comments