[PATCH] Don't constant fold bitcast/ptrtoint/inttoptr combinations without datalayout
Matt Arsenault
Matthew.Arsenault at amd.com
Sun Jul 21 02:21:34 PDT 2013
Allow folding bitcast -> ptrtoint when the address spaces are the same.
Fix inline testcase by making it use casts that can still be folded away.
Hi eli.friedman,
http://llvm-reviews.chandlerc.com/D1157
CHANGE SINCE LAST DIFF
http://llvm-reviews.chandlerc.com/D1157?vs=2846&id=2932#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.2.patch
Type: text/x-patch
Size: 9222 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130721/78412337/attachment.bin>
More information about the llvm-commits
mailing list