OSDN Git Service

Use getPrimitiveSizeInBits() instead of getPrimitiveSize()*8
authorChris Lattner <sabre@nondot.org>
Sun, 24 Apr 2005 06:59:08 +0000 (06:59 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 24 Apr 2005 06:59:08 +0000 (06:59 +0000)
commit484d3cf0e37beac7deed68a4b2c14c0cda09729c
tree207f7ae3eb304c96b655b2aed12ce956b4115498
parent6f8a2461a82004cc8875bc4d682a7de6c742e8e5
Use getPrimitiveSizeInBits() instead of getPrimitiveSize()*8

Completely rework the 'setcc (cast x to larger), y' code.  This code has
the advantage of implementing setcc.ll:test19 (being more general than
the previous code) and being correct in all cases.

This allows us to unxfail 2004-11-27-SetCCForCastLargerAndConstant.ll,
and close PR454.

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