aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ExecutionEngine/ExecutionEngineBindings.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2008-02-20 06:48:22 +0000
committerNick Lewycky <nicholas@mxc.ca>2008-02-20 06:48:22 +0000
commite7a24ff7074cb3073c00feccd65ed0aef1e07b68 (patch)
treeebc561431001a1c949d932f9f8224b4ed7391ee9 /lib/ExecutionEngine/ExecutionEngineBindings.cpp
parentf5e3e189858abfe3c24ef72b62bb6d94940a3e30 (diff)
downloadexternal_llvm-e7a24ff7074cb3073c00feccd65ed0aef1e07b68.tar.gz
external_llvm-e7a24ff7074cb3073c00feccd65ed0aef1e07b68.tar.bz2
external_llvm-e7a24ff7074cb3073c00feccd65ed0aef1e07b68.zip
Add 'umax' similar to 'smax' SCEV. Closes PR2003.
Parse reversed smax and umax as smin and umin and express them with negative or binary-not SCEVs (which are really just subtract under the hood). Parse 'xor %x, -1' as (-1 - %x). Remove dead code (ConstantInt::get always returns a ConstantInt). Don't use getIntegerSCEV(-1, Ty). The first value is an int, then it gets passed into a uint64_t. Instead, create the -1 directly from ConstantInt::getAllOnesValue(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47360 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/ExecutionEngineBindings.cpp')
0 files changed, 0 insertions, 0 deletions