[PATCH] Don't constant fold bitcast/ptrtoint/inttoptr combinations without datalayout
Eli Friedman
eli.friedman at gmail.com
Mon Jul 22 18:52:08 PDT 2013
Will you be able to revert the change to inline_constprop.ll once
"Teach ConstantFolding about address space pointer sizes"? If not,
what else will be necessary?
-Eli
On Sun, Jul 21, 2013 at 5:28 PM, Matt Arsenault
<Matthew.Arsenault at amd.com> wrote:
> Convert inttoptr -> bitcast to inttoptr if the address spaces match.
>
> I remember doing this before so I don't know what happened to it.
>
> Hi eli.friedman,
>
> http://llvm-reviews.chandlerc.com/D1157
>
> CHANGE SINCE LAST DIFF
> http://llvm-reviews.chandlerc.com/D1157?vs=2932&id=2933#toc
>
> Files:
> lib/IR/ConstantFold.cpp
> lib/IR/Instructions.cpp
> test/Transforms/Inline/inline_constprop.ll
> unittests/IR/InstructionsTest.cpp
More information about the llvm-commits
mailing list