OSDN Git Service

[InstCombine] add assert and explanatory comment for fold removed in r279568; NFC
authorSanjay Patel <spatel@rotateright.com>
Wed, 24 Aug 2016 13:55:55 +0000 (13:55 +0000)
committerSanjay Patel <spatel@rotateright.com>
Wed, 24 Aug 2016 13:55:55 +0000 (13:55 +0000)
commitb403b764608dc1809344a85d94e66f6bffae12e1
treee9049f020d02a9adad43e823358977385fa12aab
parent31a5f885bf5b8ed3107850a448660057705fd357
[InstCombine] add assert and explanatory comment for fold removed in r279568; NFC

I deleted a fold from InstCombine at:
https://reviews.llvm.org/rL279568

because it (like any InstCombine to a constant?) should always happen in InstSimplify,
however, it's not obvious what the assumptions are in the remaining code.

Add a comment and assert to make it clearer.

Differential Revision: https://reviews.llvm.org/D23819

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@279626 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCompares.cpp