[llvm] r252748 - Remove unused variable in disable-assert builds. NFC.

James Molloy via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 11 09:11:17 PST 2015


Hi Diego,

Thanks for sorting this out. Apologies, I was away from my computer during the whole incident!

I’m surprised no buildbots are running a release-no-asserts build - strange.

Cheers,

James
On 11 Nov 2015, at 16:33, Diego Novillo <dnovillo at google.com<mailto:dnovillo at google.com>> wrote:

James,

My fix is actually not correct here.  The call to ParseBFI() clearly has side-effects that go beyond the assert (http://bb.pgr.jp/builders/cmake-llvm-x86_64-linux/builds/29845/steps/test_llvm/logs/LLVM%20%3A%3A%20CodeGen__ARM__bfi.ll).

Variable From2 goes unused in disable-assert builds.  This is breaking our internal builds.

Could you please suggest a fix that will fix the disable-assert case?

Thanks.  Diego.


On Wed, Nov 11, 2015 at 11:14 AM, Diego Novillo via llvm-commits <llvm-commits at lists.llvm.org<mailto:llvm-commits at lists.llvm.org>> wrote:
Author: dnovillo
Date: Wed Nov 11 10:14:52 2015
New Revision: 252748

URL: http://llvm.org/viewvc/llvm-project?rev=252748&view=rev
Log:
Remove unused variable in disable-assert builds.  NFC.

Modified:
    llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp

Modified: llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp?rev=252748&r1=252747&r2=252748&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp Wed Nov 11 10:14:52 2015
@@ -9141,8 +9141,7 @@ static SDValue PerformBFICombine(SDNode
     SDValue From1 = ParseBFI(N, ToMask1, FromMask1);

     APInt ToMask2, FromMask2;
-    SDValue From2 = ParseBFI(CombineBFI.getNode(), ToMask2, FromMask2);
-    assert(From1 == From2);
+    assert(From1 == ParseBFI(CombineBFI.getNode(), ToMask2, FromMask2));

     // First, unlink CombineBFI.
     DCI.DAG.ReplaceAllUsesWith(CombineBFI, CombineBFI.getOperand(0));


_______________________________________________
llvm-commits mailing list
llvm-commits at lists.llvm.org<mailto:llvm-commits at lists.llvm.org>
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits



________________________________

-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151111/a9903f93/attachment.html>


More information about the llvm-commits mailing list