[llvm-dev] [canonicalization] GEP 0, 0

Davide Italiano via llvm-dev llvm-dev at lists.llvm.org
Fri Dec 23 08:22:09 PST 2016


On Fri, Dec 23, 2016 at 8:12 AM, Piotr Padlewski via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> Hi everyone,
>
> I started digging into MemDep to enhance devirtualization and I found out
> that it doesn't handle invariant.group if it will find GEP 0, 0.
> If I understand it correctly getelementptr with zeros is just bitcast. Is
> there any good reason why it is not canonicalized into bitcast?
>

Hi,
is there any particular reason why you're trying to fix this in MemDep
(and not in MemSSA?)

-- 
Davide

"There are no solved problems; there are only problems that are more
or less solved" -- Henri Poincare


More information about the llvm-dev mailing list