OSDN Git Service

InstSimplify: Handle some simple tautological comparisons
authorDavid Majnemer <david.majnemer@gmail.com>
Tue, 25 Nov 2014 02:55:48 +0000 (02:55 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Tue, 25 Nov 2014 02:55:48 +0000 (02:55 +0000)
commit044b644f54ead0ef4d61f1935aa604c017c32fa4
tree01f0da9cf5c50bba1ef413dde4d20a7efea0e4b7
parent25efc8dbce30a8b3f1937655bb43aabd3f826d37
InstSimplify: Handle some simple tautological comparisons

This handles cases where we are comparing a masked value against itself.
The analysis could be further improved by making it recursive but such
expense is not currently justified.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222716 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InstructionSimplify.cpp
test/Transforms/InstSimplify/compare.ll