Fix bad compare function over FusionCandidate.
authorRichard Trieu <rtrieu@google.com>
Thu, 18 Apr 2019 01:39:45 +0000 (01:39 +0000)
committerRichard Trieu <rtrieu@google.com>
Thu, 18 Apr 2019 01:39:45 +0000 (01:39 +0000)
commit7b6192025e8f183f0ea84ba9d59da7374727e8a6
tree5f809793d390ddee4cdd5839bfe7ac7e4666393d
parentea6037d84eddd9185b5e3eae5ce0675f4e158b36
Fix bad compare function over FusionCandidate.

Reverse the checking of the domiance order so that when a self compare happens,
it returns false.  This makes compare function have strict weak ordering.

llvm-svn: 358636
llvm/lib/Transforms/Scalar/LoopFuse.cpp