llvm-6502/lib/CodeGen/SelectionDAG
Chandler Carruth 1c49fda408 Fix a miscompile in the DAG combiner. Previously, we would incorrectly
try to reduce the width of this load, and would end up transforming:

  (truncate (lshr (sextload i48 <ptr> as i64), 32) to i32)
to
  (truncate (zextload i32 <ptr+4> as i64) to i32)

We lost the sext attached to the load while building the narrower i32
load, and replaced it with a zext because lshr always zext's the
results. Instead, bail out of this combine when there is a conflict
between a sextload and a zext narrowing. The rest of the DAG combiner
still optimize the code down to the proper single instruction:

  movswl 6(...),%eax

Which is exactly what we wanted. Previously we read past the end *and*
missed the sign extension:

  movl 6(...), %eax

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169802 91177308-0d34-0410-b5e6-96231b3b80d8
2012-12-11 00:36:57 +00:00
..
CMakeLists.txt llvm/lib: [CMake] Add explicit dependency to intrinsics_gen. 2012-06-24 13:32:01 +00:00
DAGCombiner.cpp Fix a miscompile in the DAG combiner. Previously, we would incorrectly 2012-12-11 00:36:57 +00:00
FastISel.cpp Use the new script to sort the includes of every file under lib. 2012-12-03 16:50:05 +00:00
FunctionLoweringInfo.cpp Use the new script to sort the includes of every file under lib. 2012-12-03 16:50:05 +00:00
InstrEmitter.cpp Use the new script to sort the includes of every file under lib. 2012-12-03 16:50:05 +00:00
InstrEmitter.h Sort includes for all of the .h files under the 'lib' tree. These were 2012-12-04 07:12:27 +00:00
LegalizeDAG.cpp LegalizeDAG: Allow type promotion of scalar loads 2012-12-10 21:41:58 +00:00
LegalizeFloatTypes.cpp Follow the same routine to add target float expansion hook 2012-10-11 07:22:01 +00:00
LegalizeIntegerTypes.cpp Back out r166591, not sure why this made it through since I cancelled the command. Bleh, sorry about this! 2012-10-24 17:25:11 +00:00
LegalizeTypes.cpp Use the new script to sort the includes of every file under lib. 2012-12-03 16:50:05 +00:00
LegalizeTypes.h Sort includes for all of the .h files under the 'lib' tree. These were 2012-12-04 07:12:27 +00:00
LegalizeTypesGeneric.cpp Fix big-endian codegen bug in DAGTypeLegalizer::ExpandRes_BITCAST 2012-10-12 15:42:58 +00:00
LegalizeVectorOps.cpp Mark FP_EXTEND form v2f32 to v2f64 as "expand" for ARM NEON. Patch by Pete Couperus. 2012-11-17 01:52:46 +00:00
LegalizeVectorTypes.cpp Cleanup recent addition of DAGTypeLegalizer::SplitVecOp_VSELECT 2012-11-29 19:42:09 +00:00
LLVMBuild.txt LLVMBuild: Remove trailing newline, which irked me. 2011-12-12 19:48:00 +00:00
Makefile
ResourcePriorityQueue.cpp Simplify code. No functionality change. 2012-12-04 01:00:52 +00:00
ScheduleDAGFast.cpp Use the new script to sort the includes of every file under lib. 2012-12-03 16:50:05 +00:00
ScheduleDAGRRList.cpp Use the new script to sort the includes of every file under lib. 2012-12-03 16:50:05 +00:00
ScheduleDAGSDNodes.cpp Use the new script to sort the includes of every file under lib. 2012-12-03 16:50:05 +00:00
ScheduleDAGSDNodes.h Add a really faster pre-RA scheduler (-pre-RA-sched=linearize). It doesn't use 2012-10-17 19:39:36 +00:00
ScheduleDAGVLIW.cpp Use the new script to sort the includes of every file under lib. 2012-12-03 16:50:05 +00:00
SDNodeDbgValue.h Sort includes for all of the .h files under the 'lib' tree. These were 2012-12-04 07:12:27 +00:00
SDNodeOrdering.h Mark unimplemented copy constructors and copy assignment operators as LLVM_DELETED_FUNCTION. 2012-09-18 02:01:41 +00:00
SelectionDAG.cpp Some enhancements for memcpy / memset inline expansion. 2012-12-10 23:21:26 +00:00
SelectionDAGBuilder.cpp Fall back to the selection dag isel to select tail calls. 2012-12-11 00:18:02 +00:00
SelectionDAGBuilder.h Sort includes for all of the .h files under the 'lib' tree. These were 2012-12-04 07:12:27 +00:00
SelectionDAGDumper.cpp Use the new script to sort the includes of every file under lib. 2012-12-03 16:50:05 +00:00
SelectionDAGISel.cpp Fall back to the selection dag isel to select tail calls. 2012-12-11 00:18:02 +00:00
SelectionDAGPrinter.cpp Use the new script to sort the includes of every file under lib. 2012-12-03 16:50:05 +00:00
TargetLowering.cpp Fix a coding style nit. 2012-12-10 22:00:20 +00:00
TargetSelectionDAGInfo.cpp Move TargetData to DataLayout. 2012-10-08 16:38:25 +00:00