Displaying 3 results from an estimated 3 matches for "format_long".
2015 Aug 07
3
load instruction erroneously removed by GVN
...arles R wrote:
>> From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org]
>> On Behalf Of Mikael Holmén via llvm-dev
>> Subject: [llvm-dev] load instruction erroneously removed by GVN
>
>> But between the load and the alloca there is also
>> call fastcc void @format_long(i16* %_tmp30, i16 10, i32 10), !dbg !22
>> which will use %_tmp30 to write in the alloca'd buffer.
>
>> Shoulnd't MemoryDependenceAnalysis::getDependency rather return the call?
>
> Depends. What is the exact declaration of format_long?
In the input .ll file it is:
;...
2015 Aug 07
2
load instruction erroneously removed by GVN
...*** IR Dump Before Global Value Numbering ***
; Function Attrs: minsize optsize
define i16 @TEST__MAIN(i16 %argc.13.par, i16** %argv.14.par) #0 {
%buf.17 = alloca [10 x i16], align 1
%_tmp30 = getelementptr inbounds [10 x i16], [10 x i16]* %buf.17, i16
0, i16 0, !dbg !22
call fastcc void @format_long(i16* %_tmp30, i16 10, i32 10), !dbg !22
%_tmp32 = getelementptr [10 x i16], [10 x i16]* %buf.17, i16 0, i16
0, !dbg !24
%_tmp33 = load i16, i16* %_tmp32, align 1, !dbg !24
call fastcc void @check_i(i16 2, i16 %_tmp33, i16 48), !dbg !24
ret i16 0, !dbg !25
}
GVN debug printouts:
GVN...
2015 Aug 10
2
load instruction erroneously removed by GVN
Hi,
On 08/07/2015 10:30 PM, Nick Lewycky wrote:
[...]
> Depends. What is the exact declaration of format_long?
>
>
> In the input .ll file it is:
>
> ; Function Attrs: minsize optsize
> define internal i16 @format_long(i16* %res.8.par, i16 %base.9.par,
> i32 %x.10.par) #3 {
>
> which is later changed somewhere in opt to:
>
> ; Function Attrs: minsize...