| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
Always pass the constant as the second parameter to HowManyLessThans.
Remove obsolete "isSigned" parameter.
llvm-svn: 39893
|
|
|
|
|
|
|
| |
use SCEVConstant::get instead of SCEVUnknown::get when constructing a SCEV
for a ConstantInt.
llvm-svn: 38457
|
|
|
|
|
|
|
|
|
| |
deleteValueFromRecords and loosen the types to all it to accept
Value* instead of just Instruction*, since this is what
ScalarEvolution uses internally anyway. This allows more flexibility
for future uses.
llvm-svn: 37657
|
|
|
|
|
|
|
| |
add operands after constant operands. The recent change to recognize
sign-extend expressions caused this to be exposed more often.
llvm-svn: 37628
|
|
|
|
|
|
|
|
|
|
| |
This created an ambiguity for expandInTy to decide when to use
sign-extension or zero-extension, but it turns out that most of its callers
don't actually need a type conversion, now that LLVM types don't have
explicit signedness. Drop expandInTy in favor of plain expand, and change
the few places that actually need a type conversion to do it themselves.
llvm-svn: 37591
|
|
|
|
|
|
|
| |
Secondly, checking whether removal succeeded tells you whether it was in
the map to begin with.
llvm-svn: 37469
|
|
|
|
| |
llvm-svn: 37459
|
|
|
|
| |
llvm-svn: 36662
|
|
|
|
|
|
|
| |
Due to darwin gcc bug, one version of darwin linker coalesces
static const int, which defauts PassID based pass identification.
llvm-svn: 36652
|
|
|
|
| |
llvm-svn: 36648
|
|
|
|
| |
llvm-svn: 36632
|
|
|
|
| |
llvm-svn: 36102
|
|
|
|
|
|
|
| |
Fix a div-by-zero bug noticed by APInt. This fixes:
test/Transforms/IndVarsSimplify/exit_value_tests.llx
llvm-svn: 36099
|
|
|
|
|
|
| |
Transforms/IndVarsSimplify/exit_value_tests.llx
llvm-svn: 36081
|
|
|
|
| |
llvm-svn: 35740
|
|
|
|
|
|
| |
ConstantExpr::getXX if possible.
llvm-svn: 35738
|
|
|
|
| |
llvm-svn: 35737
|
|
|
|
| |
llvm-svn: 35586
|
|
|
|
| |
llvm-svn: 34897
|
|
|
|
| |
llvm-svn: 34831
|
|
|
|
|
|
| |
Constant::isNullValue() in situations where it is possible.
llvm-svn: 34821
|
|
|
|
| |
llvm-svn: 34816
|
|
|
|
| |
llvm-svn: 34795
|
|
|
|
|
|
| |
APInt's of unequal bitwidth.
llvm-svn: 34790
|
|
|
|
|
|
|
|
| |
are not needed as the results are the same with or without it.
Patch by Nicholas Lewycky.
llvm-svn: 34782
|
|
|
|
| |
llvm-svn: 34780
|
|
|
|
|
|
| |
Make GetConstantFactor compute its result using an APInt.
llvm-svn: 34765
|
|
|
|
|
|
| |
Adjust to changes in ConstantRange interface.
llvm-svn: 34762
|
|
|
|
|
|
|
| |
Remove ConstantInt from ConstantRange interface and adjust its users to
compensate.
llvm-svn: 34758
|
|
|
|
|
|
|
| |
First round of ConstantRange changes. This makes all CR constructors use
only APInt and not use ConstantInt. Clients are adjusted accordingly.
llvm-svn: 34756
|
|
|
|
|
|
|
|
|
|
|
|
| |
This feature is needed in order to support shifts of more than 255 bits
on large integer types. This changes the syntax for llvm assembly to
make shl, ashr and lshr instructions look like a binary operator:
shl i32 %X, 1
instead of
shl i32 %X, i8 1
Additionally, this should help a few passes perform additional optimizations.
llvm-svn: 33776
|
|
|
|
|
|
|
| |
ConstantFoldInstOperands. Switch to ConstantFoldInstOperands and remove
ConstantFold.
llvm-svn: 33683
|
|
|
|
| |
llvm-svn: 33673
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is the final patch for this PR. It implements some minor cleanup
in the use of IntegerType, to wit:
1. Type::getIntegerTypeMask -> IntegerType::getBitMask
2. Type::Int*Ty changed to IntegerType* from Type*
3. ConstantInt::getType() returns IntegerType* now, not Type*
This also fixes PR1120.
Patch by Sheng Zhou.
llvm-svn: 33370
|
|
|
|
| |
llvm-svn: 33242
|
|
|
|
|
|
|
|
|
| |
rename Type::getIntegralTypeMask to Type::getIntegerTypeMask.
This makes naming much more consistent. For example, there are now no longer any
instances of IntegerType that are not considered isInteger! :)
llvm-svn: 33225
|
|
|
|
| |
llvm-svn: 33220
|
|
|
|
| |
llvm-svn: 33193
|
|
|
|
| |
llvm-svn: 33128
|
|
|
|
|
|
|
|
| |
recommended that getBoolValue be replaced with getZExtValue and that
get(bool) be replaced by get(const Type*, uint64_t). This implements
those changes.
llvm-svn: 33110
|
|
|
|
| |
llvm-svn: 33076
|
|
|
|
|
|
|
| |
Merge ConstantIntegral and ConstantBool into ConstantInt.
Remove ConstantIntegral and ConstantBool from LLVM.
llvm-svn: 33073
|
|
|
|
| |
llvm-svn: 33003
|
|
|
|
|
|
| |
miscompilation of Qt.
llvm-svn: 32974
|
|
|
|
|
|
| |
obsolete
llvm-svn: 32972
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch replaces signed integer types with signless ones:
1. [US]Byte -> Int8
2. [U]Short -> Int16
3. [U]Int -> Int32
4. [U]Long -> Int64.
5. Removal of isSigned, isUnsigned, getSignedVersion, getUnsignedVersion
and other methods related to signedness. In a few places this warranted
identifying the signedness information from other sources.
llvm-svn: 32785
|
|
|
|
|
|
|
|
| |
This patch removes the SetCC instructions and replaces them with the ICmp
and FCmp instructions. The SetCondInst instruction has been removed and
been replaced with ICmpInst and FCmpInst.
llvm-svn: 32751
|
|
|
|
| |
llvm-svn: 32732
|
|
|
|
| |
llvm-svn: 32727
|
|
|
|
| |
llvm-svn: 32697
|