Implement the IsDigitOptimization for simplifying calls to the isdigit
authorReid Spencer <rspencer@reidspencer.com>
Wed, 4 May 2005 18:58:28 +0000 (18:58 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Wed, 4 May 2005 18:58:28 +0000 (18:58 +0000)
commitcea6559f602392b5be5d2c20e3bc5dc00d067e51
treec85646dcda64e908009d94f3570578e64add8bce
parent3ec93c593c820b8626e4649fbbf41abb03a3a311
Implement the IsDigitOptimization for simplifying calls to the isdigit
library function:
  isdigit(chr) -> 0 or 1 if chr is constant
  isdigit(chr) -> chr - '0' <= 9 otherwise

Although there are many calls to isdigit in llvm-test, most of them are
compiled away by macros leaving only this:

2 MultiSource/Applications/hexxagon

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21688 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/SimplifyLibCalls.cpp