File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ bool TargetMachine::isLargeGlobalValue(const GlobalValue *GVal) const {
92
92
GV->getName ().starts_with (" __stop_" )))
93
93
return true ;
94
94
const DataLayout &DL = GV->getParent ()->getDataLayout ();
95
- uint64_t Size = DL.getTypeSizeInBits (GV->getValueType ()) / 8 ;
95
+ uint64_t Size = DL.getTypeAllocSize (GV->getValueType ());
96
96
return Size == 0 || Size > LargeDataThreshold;
97
97
}
98
98
Original file line number Diff line number Diff line change @@ -772,9 +772,7 @@ define dso_local i1 @load_bool() #0 {
772
772
;
773
773
; MEDIUM-SMALL-DATA-PIC-LABEL: load_bool:
774
774
; MEDIUM-SMALL-DATA-PIC: # %bb.0:
775
- ; MEDIUM-SMALL-DATA-PIC-NEXT: leaq _GLOBAL_OFFSET_TABLE_(%rip), %rax
776
- ; MEDIUM-SMALL-DATA-PIC-NEXT: movabsq $bool@GOTOFF, %rcx
777
- ; MEDIUM-SMALL-DATA-PIC-NEXT: movzbl (%rax,%rcx), %eax
775
+ ; MEDIUM-SMALL-DATA-PIC-NEXT: movzbl bool(%rip), %eax
778
776
; MEDIUM-SMALL-DATA-PIC-NEXT: retq
779
777
;
780
778
; MEDIUM-PIC-LABEL: load_bool:
You can’t perform that action at this time.
0 commit comments