[PATCH] Address Space Casting
Michele Scandale
michele.scandale at gmail.com
Mon Sep 2 08:32:46 PDT 2013
New version of the patch:
* remove modification of C-bindings LLVMOpcode enumeration
* fixed constant folding failure: IntToPtr of PtrToInt is folded into a bitcast iff the int size is greater than the ptr size and the address spaces are the same. If there's an address space mismatch the sequence cannot be simplified because the semantic is totally target dependent.
I'll wait for feedback.
Thanks again.
Regards,
-Michele
Hi arsenm, villmow, theraven,
http://llvm-reviews.chandlerc.com/D1401
CHANGE SINCE LAST DIFF
http://llvm-reviews.chandlerc.com/D1401?vs=3584&id=3972#toc
Files:
include/llvm-c/Core.h
include/llvm/AutoUpgrade.h
include/llvm/Bitcode/LLVMBitCodes.h
include/llvm/CodeGen/ISDOpcodes.h
include/llvm/CodeGen/SelectionDAG.h
include/llvm/CodeGen/SelectionDAGNodes.h
include/llvm/IR/Constants.h
include/llvm/IR/IRBuilder.h
include/llvm/IR/Instruction.def
include/llvm/IR/Instructions.h
include/llvm/InstVisitor.h
include/llvm/Target/TargetLowering.h
lib/Analysis/ConstantFolding.cpp
lib/AsmParser/LLLexer.cpp
lib/AsmParser/LLParser.cpp
lib/AsmParser/LLToken.h
lib/Bitcode/Reader/BitcodeReader.cpp
lib/Bitcode/Writer/BitcodeWriter.cpp
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
lib/CodeGen/TargetLoweringBase.cpp
lib/IR/AutoUpgrade.cpp
lib/IR/ConstantFold.cpp
lib/IR/Constants.cpp
lib/IR/Core.cpp
lib/IR/Instruction.cpp
lib/IR/Instructions.cpp
lib/IR/Verifier.cpp
lib/Target/NVPTX/NVPTXGenericToNVVM.cpp
lib/Target/X86/X86CodeEmitter.cpp
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86ISelLowering.h
test/Other/constant-fold-gep.ll
test/Transforms/InstCombine/2012-07-30-addrsp-bitcast.ll
test/Transforms/InstCombine/constant-fold-address-space-pointer.ll
unittests/IR/InstructionsTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1401.4.patch
Type: text/x-patch
Size: 55978 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130902/b6c32b0c/attachment.bin>
More information about the llvm-commits
mailing list