Displaying 1 result from an estimated 1 matches for "_z3tgtm".
2020 Jun 19
4
LLVM-IR store-load propagation
...idx, align 16
%arrayidx1 = getelementptr inbounds [2 x i64], [2 x i64]* %Memory, i64 0,
i64 1
store i64 5369966790, i64* %arrayidx1, align 8
%arrayidx2 = getelementptr inbounds [2 x i64], [2 x i64]* %Memory, i64 0,
i64 %shr
%1 = load i64, i64* %arrayidx2, align 8
ret i64 %1
}
define i64 @_Z3tgtm(i64 %Flags) {
entry:
%0 = and i64 %Flags, 64
%trunc = icmp eq i64 %0, 0
%. = select i1 %trunc, i64 5369966919, i64 5369966790
ret i64 %.
}
At this point I decided to replicate the 'tgt' function logic and coded a
quick LLVM pass that:
1. uses the known/unknown computed bits inf...