llvm-6502/lib/Transforms/Scalar
Robert Bocchino 71698285e8 This change fixed a bug in the function visitMul. The prior version
assumed that a constant on the RHS of a multiplication was either an
IntConstant or an FPConstant.  It checked for an IntConstant and then,
if it did not find one, did a hard cast to an FPConstant.  That code
would crash if the RHS were a ConstantExpr that was neither an
IntConstant nor an FPConstant.  This version replaces the hard cast
with a dyn_cast.  It performs the same way for IntConstants and
FPConstants but does nothing, instead of crashing, for constant
expressions.

The regression test for this change is 2004-07-27-ConstantExprMul.ll.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15291 91177308-0d34-0410-b5e6-96231b3b80d8
2004-07-27 21:02:21 +00:00
..
ADCE.cpp
BasicBlockPlacement.cpp
ConstantProp.cpp
CorrelatedExprs.cpp bug 122: 2004-07-18 00:29:57 +00:00
DCE.cpp Make the create...() functions for some of these passes return a FunctionPass *. 2004-07-27 17:43:21 +00:00
DeadStoreElimination.cpp Implement DeadStoreElim/alloca.llx by observing that allocas are dead at the 2004-07-26 06:14:11 +00:00
DecomposeMultiDimRefs.cpp
GCSE.cpp Expand the scope to include global values because they are now constants 2004-07-18 08:32:10 +00:00
IndVarSimplify.cpp Throttle back indvar substitution from creating multiplies in loops. This is bad bad bad. 2004-07-26 02:47:12 +00:00
InstructionCombining.cpp This change fixed a bug in the function visitMul. The prior version 2004-07-27 21:02:21 +00:00
LICM.cpp Fix hoisting of void typed values, e.g. calls 2004-07-27 07:38:32 +00:00
LoopUnroll.cpp
LoopUnswitch.cpp
LowerConstantExprs.cpp
LowerGC.cpp Update GC intrinsics to take a pointer to the object as well as a pointer 2004-07-22 05:51:13 +00:00
Makefile
PiNodeInsertion.cpp
PRE.cpp
Reassociate.cpp
ScalarReplAggregates.cpp
SCCP.cpp Delete a redundant if branch. 2004-07-18 08:34:52 +00:00
SimplifyCFG.cpp
SymbolStripping.cpp
TailDuplication.cpp
TailRecursionElimination.cpp