search for: vfn_ptr

Displaying 2 results from an estimated 2 matches for "vfn_ptr".

2016 Jan 28
2
Proposal: virtual constant propagation
...ractice? Initially Pete had to thread special handling for this intrinsic everywhere till instruction selection. I changed the semantic of the intrinsic to be completely opaque, the codegen I have looks like: %vtable = load void (%struct.Derived2*)**, void (%struct.Derived2*)*** %3, align 8 %vfn_ptr = getelementptr inbounds void (%struct.Derived2*)*, void (%struct.Derived2*)** %vtable, i64 1 %vfn = load void (%struct.Derived2*)*, void (%struct.Derived2*)** %vfn_ptr, align 8 call void %vfn(%struct.Derived2* %2) to: %vtable = load void (%struct.Derived2*)**, void (%struct.Derived2*)*** %...
2016 Jan 28
2
Proposal: virtual constant propagation
Hi, I just thought about another use case: VTable compression. If you know that an entry in the Vtable is never used, just remove it! I’d hope we could even eliminate some unused virtual functions from the final binary. — Mehdi > On Jan 27, 2016, at 10:29 PM, Mehdi Amini via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > Hi Peter, > > Pete (Cooper, CC'ed) had a