llvm-project/llvm/lib/CodeGen/SelectionDAG
Pawel Bylica 06407c0320 Fix shl folding in DAG combiner.
Summary: The code responsible for shl folding in the DAGCombiner was assuming incorrectly that all constants are less than 64 bits. This patch simply changes the way values are compared.

Test Plan: A regression test included.

Reviewers: andreadb

Reviewed By: andreadb

Subscribers: andreadb, test, llvm-commits

Differential Revision: http://reviews.llvm.org/D10602

llvm-svn: 240291
2015-06-22 15:58:11 +00:00
..
CMakeLists.txt [Statepoints 3/4] Statepoint infrastructure for garbage collection: SelectionDAGBuilder 2014-12-02 18:50:36 +00:00
DAGCombiner.cpp Fix shl folding in DAG combiner. 2015-06-22 15:58:11 +00:00
FastISel.cpp [Fast-ISel] Don't mark the first use of a remat constant as killed. 2015-05-09 00:51:03 +00:00
FunctionLoweringInfo.cpp Move the personality function from LandingPadInst to Function 2015-06-17 20:52:32 +00:00
InstrEmitter.cpp IR: Give 'DI' prefix to debug info metadata 2015-04-29 16:38:44 +00:00
InstrEmitter.h Fixed/added namespace ending comments using clang-tidy. NFC 2015-06-19 15:57:42 +00:00
LLVMBuild.txt
LegalizeDAG.cpp Fixed/added namespace ending comments using clang-tidy. NFC 2015-06-19 15:57:42 +00:00
LegalizeFloatTypes.cpp Reapply r235977 "[DebugInfo] Add debug locations to constant SD nodes" 2015-04-28 14:05:47 +00:00
LegalizeIntegerTypes.cpp SelectionDAG: fix logic for promoting shift types 2015-05-29 23:37:22 +00:00
LegalizeTypes.cpp Fixed/added namespace ending comments using clang-tidy. NFC 2015-06-19 15:57:42 +00:00
LegalizeTypes.h Added promotion to EXTRACT_SUBVECTOR operand. 2015-05-25 11:33:13 +00:00
LegalizeTypesGeneric.cpp Reapply r235977 "[DebugInfo] Add debug locations to constant SD nodes" 2015-04-28 14:05:47 +00:00
LegalizeVectorOps.cpp Fixed/added namespace ending comments using clang-tidy. NFC 2015-06-19 15:57:42 +00:00
LegalizeVectorTypes.cpp Add SDNodes for umin, umax, smin and smax. 2015-05-15 09:03:15 +00:00
Makefile
ResourcePriorityQueue.cpp unique_ptrify ResourcePriorityQueue::ResourceModel 2015-03-03 20:49:08 +00:00
SDNodeDbgValue.h Fixed/added namespace ending comments using clang-tidy. NFC 2015-06-19 15:57:42 +00:00
ScheduleDAGFast.cpp Update SetVector to rely on the underlying set's insert to return a pair<iterator, bool> 2014-11-19 07:49:26 +00:00
ScheduleDAGRRList.cpp Use 'override/final' instead of 'virtual' for overridden methods 2015-04-11 02:11:45 +00:00
ScheduleDAGSDNodes.cpp Replace push_back(Constructor(foo)) with emplace_back(foo) for non-trivial types 2015-05-29 19:43:39 +00:00
ScheduleDAGSDNodes.h Fixed/added namespace ending comments using clang-tidy. NFC 2015-06-19 15:57:42 +00:00
ScheduleDAGVLIW.cpp Use 'override/final' instead of 'virtual' for overridden methods 2015-04-11 02:11:45 +00:00
SelectionDAG.cpp Fixed/added namespace ending comments using clang-tidy. NFC 2015-06-19 15:57:42 +00:00
SelectionDAGBuilder.cpp Switch lowering: add heuristic for filling leaf nodes in the weight-balanced binary search tree 2015-06-20 17:14:07 +00:00
SelectionDAGBuilder.h Switch lowering: add heuristic for filling leaf nodes in the weight-balanced binary search tree 2015-06-20 17:14:07 +00:00
SelectionDAGDumper.cpp Add SDNodes for umin, umax, smin and smax. 2015-05-15 09:03:15 +00:00
SelectionDAGISel.cpp Fixed/added namespace ending comments using clang-tidy. NFC 2015-06-19 15:57:42 +00:00
SelectionDAGPrinter.cpp Fixed/added namespace ending comments using clang-tidy. NFC 2015-06-19 15:57:42 +00:00
StatepointLowering.cpp [Statepoint] Remove unnecessary argument from Statepoint::getRelocates 2015-06-20 00:01:03 +00:00
StatepointLowering.h [StatepointLowering] Support of the gc.relocates for invoke statepoints. 2015-05-20 11:37:25 +00:00
TargetLowering.cpp propagate IR-level fast-math-flags to DAG nodes, disabled by default 2015-06-16 16:25:43 +00:00
TargetSelectionDAGInfo.cpp Have TargetSelectionDAGInfo take a DataLayout initializer rather than 2014-06-06 19:04:48 +00:00