[llvm] r305739 - [BDCE] Add comments. NFC

Xin Tong via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 19 13:10:41 PDT 2017


Author: trentxintong
Date: Mon Jun 19 15:10:41 2017
New Revision: 305739

URL: http://llvm.org/viewvc/llvm-project?rev=305739&view=rev
Log:
[BDCE] Add comments. NFC

Modified:
    llvm/trunk/lib/Analysis/DemandedBits.cpp

Modified: llvm/trunk/lib/Analysis/DemandedBits.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/DemandedBits.cpp?rev=305739&r1=305738&r2=305739&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/DemandedBits.cpp (original)
+++ llvm/trunk/lib/Analysis/DemandedBits.cpp Mon Jun 19 15:10:41 2017
@@ -107,6 +107,8 @@ void DemandedBits::determineLiveOperandB
         AB = AOut.byteSwap();
         break;
       case Intrinsic::bitreverse:
+        // The alive bits of the input are the reversed alive bits of
+        // the output.
         AB = AOut.reverseBits();
         break;
       case Intrinsic::ctlz:




More information about the llvm-commits mailing list