llvm-6502/include/llvm
Chandler Carruth a87c35420b Revert r220349 to re-instate r220277 with a fix for PR21330 -- quite
clearly only exactly equal width ptrtoint and inttoptr casts are no-op
casts, it says so right there in the langref. Make the code agree.

Original log from r220277:
Teach the load analysis to allow finding available values which require
inttoptr or ptrtoint cast provided there is datalayout available.
Eventually, the datalayout can just be required but in practice it will
always be there today.

To go with the ability to expose available values requiring a ptrtoint
or inttoptr cast, helpers are added to perform one of these three casts.

These smarts are necessary to finish canonicalizing loads and stores to
the operational type requirements without regressing fundamental
combines.

I've added some test cases. These should actually improve as the load
combining and store combining improves, but they may fundamentally be
highlighting some missing combines for select in addition to exercising
the specific added logic to load analysis.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222739 91177308-0d34-0410-b5e6-96231b3b80d8
2014-11-25 08:20:27 +00:00
..
ADT Tidied up target triple OS detection. NFC 2014-11-22 19:12:10 +00:00
Analysis Remove the unused FindUsedTypes pass. 2014-11-24 20:53:26 +00:00
AsmParser
Bitcode
CodeGen Masked Vector Load and Store Intrinsics. 2014-11-23 08:07:43 +00:00
Config
DebugInfo
ExecutionEngine [MCJIT] Remove JITEventListener::NotifyFreeingMachineCode. This method is dead 2014-11-21 01:57:09 +00:00
IR Revert r220349 to re-instate r220277 with a fix for PR21330 -- quite 2014-11-25 08:20:27 +00:00
IRReader
LineEditor
Linker Fix formatting. NFC. 2014-11-21 18:05:55 +00:00
LTO Remove StringMap::GetOrCreateValue in favor of StringMap::insert 2014-11-19 05:49:42 +00:00
MC Adding const iterator to MCInst. http://reviews.llvm.org/D6359 2014-11-24 16:50:40 +00:00
Object [Object][Mips] Return address of MIPS symbol with cleared microMIPS indicator bit 2014-11-25 05:57:55 +00:00
Option
ProfileData
Support Added comment about llvm_execute_on_thread waiting for thread to complete. 2014-11-24 14:51:41 +00:00
TableGen Remove StringMap::GetOrCreateValue in favor of StringMap::insert 2014-11-19 05:49:42 +00:00
Target Masked Vector Load and Store Intrinsics. 2014-11-23 08:07:43 +00:00
Transforms [SeparateConstOffsetFromGEP] Allow SeparateConstOffsetFromGEP pass to lower GEPs. 2014-11-19 06:24:44 +00:00
CMakeLists.txt
InitializePasses.h Remove the unused FindUsedTypes pass. 2014-11-24 20:53:26 +00:00
LinkAllIR.h
LinkAllPasses.h Remove the unused FindUsedTypes pass. 2014-11-24 20:53:26 +00:00
module.modulemap
module.modulemap.build
Pass.h
PassAnalysisSupport.h
PassInfo.h
PassManager.h
PassRegistry.h
PassSupport.h