[PATCH] Don't constant fold bitcast/ptrtoint/inttoptr combinations without datalayout
Matt Arsenault
Matthew.Arsenault at amd.com
Sun Jul 21 17:28:08 PDT 2013
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1157.3.patch
Type: text/x-patch
Size: 10025 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130721/8bc11e65/attachment.bin>
More information about the llvm-commits
mailing list