[llvm-bugs] [Bug 42526] New: CGBuiltin.cpp - EmitX86BuiltinExpr - Value stored to 'Store' during its initialization is never read

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Jul 6 11:43:43 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=42526

            Bug ID: 42526
           Summary: CGBuiltin.cpp - EmitX86BuiltinExpr - Value stored to
                    'Store' during its initialization is never read
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: llvm-dev at redking.me.uk
                CC: craig.topper at gmail.com, llvm-bugs at lists.llvm.org,
                    llvm-dev at redking.me.uk, pengfei.wang at intel.com,
                    spatel+llvm at rotateright.com

https://llvm.org/reports/scan-build/report-CGBuiltin.cpp-EmitX86BuiltinExpr-1814-1.html#EndPath

    Value *Call = Builder.CreateCall(CGM.getIntrinsic(ID), {Ops[0], Ops[1]});
    Value *Result = Builder.CreateExtractValue(Call, 0);
    Result = EmitX86MaskedCompareResult(*this, Result, NumElts, nullptr);
    Value *Store = Builder.CreateDefaultAlignedStore(Result, Ops[2]);

    Result = Builder.CreateExtractValue(Call, 1);
    Result = EmitX86MaskedCompareResult(*this, Result, NumElts, nullptr);
    Store = Builder.CreateDefaultAlignedStore(Result, Ops[3]);
    return Store;


scan-build is complaining that the first Store is never read - should it be
removed?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190706/c78088ed/attachment.html>


More information about the llvm-bugs mailing list