Make RequiresTypeConversion canonicalize the types before calling the
authorDan Gohman <gohman@apple.com>
Fri, 1 May 2009 17:07:43 +0000 (17:07 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 1 May 2009 17:07:43 +0000 (17:07 +0000)
commit9f2d671b154e2b48b097d813b64a2bf2a33c547a
tree7841b02eab23e5101c177ec882fd7c9f031ca0d1
parent9032b78c987d08b9e1dd25b6ab94b305e717832e
Make RequiresTypeConversion canonicalize the types before calling the
target hooks canLosslesslyBitCastTo and isTruncateFree. This allows
targets to avoid worrying about handling all combinations of integer
and pointer types.

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