OSDN Git Service

InstructionSimplify should be able to simplify A+B==B+A to 'true'
authorDuncan Sands <baldrick@free.fr>
Fri, 16 Nov 2012 19:41:26 +0000 (19:41 +0000)
committerDuncan Sands <baldrick@free.fr>
Fri, 16 Nov 2012 19:41:26 +0000 (19:41 +0000)
commitaceb03eb58778ae4a2811d2c2bbd23e0e0cf49b5
treedfc44a22b8c4216b049a15b9f107bf33215d5d4c
parent48f63be3684213e16fb657e9bb8c37ae02788e90
InstructionSimplify should be able to simplify A+B==B+A to 'true'
but wasn't due to the same logic bug that caused PR14361.

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