OSDN Git Service

* Pull range optimization code out into new InsertRangeTest function.
authorChris Lattner <sabre@nondot.org>
Wed, 29 Sep 2004 17:40:11 +0000 (17:40 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 29 Sep 2004 17:40:11 +0000 (17:40 +0000)
commita96879a26dad2e68af65fc985e89b4e8773ea726
treef6a10c7654878f9e564eccd6c113c84d1e8b8aed
parenta2393502be3028d99f62e2ff98f803aa6cf5026e
* Pull range optimization code out into new InsertRangeTest function.
* SubOne/AddOne functions always return ConstantInt, declare them as such
* Pull code for handling setcc X, cst, where cst is at the end of the range,
  or cc is LE or GE up earlier in visitSetCondInst.  This reduces #iterations
  in some cases.
* Fold: (div X, C1) op C2 -> range check, implementing div.ll:test6 - test9.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16588 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp