llvm-6502/lib/Transforms
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
..
Hello Finegrainify namespacification 2004-01-09 06:12:26 +00:00
Instrumentation These files don't need to include <iostream> since they include "Support/Debug.h". 2004-07-21 20:50:33 +00:00
IPO Ignore instructions that are in trivially dead functions. This allows us 2004-07-20 03:58:07 +00:00
Scalar This change fixed a bug in the function visitMul. The prior version 2004-07-27 21:02:21 +00:00
Utils These files don't need to include <iostream> since they include "Support/Debug.h". 2004-07-21 20:50:33 +00:00
ExprTypeConvert.cpp These files don't need to include <iostream> since they include "Support/Debug.h". 2004-07-21 20:50:33 +00:00
LevelRaise.cpp bug 122: 2004-07-18 00:19:45 +00:00
Makefile
TransformInternals.cpp Support getelementptr instructions which use uint's to index into structure 2004-04-05 01:30:19 +00:00
TransformInternals.h