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) {
699
699
case Instruction::FPTrunc:
700
700
case Instruction::FPExt:
701
701
case Instruction::PtrToInt:
702
+ case Instruction::PtrToAddr:
702
703
case Instruction::IntToPtr:
703
704
case Instruction::AddrSpaceCast:
704
705
case Instruction::BitCast:
Original file line number Diff line number Diff line change 4
4
define i64 @ptrtoaddr_same (ptr %p ) {
5
5
; CHECK-LABEL: define i64 @ptrtoaddr_same(
6
6
; CHECK-SAME: ptr [[P:%.*]]) {
7
- ; CHECK-NEXT: [[I:%.*]] = ptrtoaddr ptr [[P]] to i64
8
7
; 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
11
9
;
12
10
%i = ptr toaddr ptr %p to i64
13
11
%j = ptr toaddr ptr %p to i64
You can’t perform that action at this time.
0 commit comments