[llvm] r252748 - Remove unused variable in disable-assert builds. NFC.
Diego Novillo via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 11 08:33:15 PST 2015
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> 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
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151111/1a31e21c/attachment.html>
More information about the llvm-commits
mailing list