[llvm-bugs] [Bug 51679] New: [full restrict] Assertion `isAllocaPromotable(AI)`

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Aug 30 11:01:09 PDT 2021


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

            Bug ID: 51679
           Summary: [full restrict] Assertion `isAllocaPromotable(AI)`
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Transformation Utilities
          Assignee: unassignedbugs at nondot.org
          Reporter: alina.sbirlea at gmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 25202
  --> https://bugs.llvm.org/attachment.cgi?id=25202&action=edit
Testcase

With the full restrict support patches, I'm seeing the following assertion: 
llvm-project/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp:911: void
(anonymous namespace)::PromoteMem2Reg::run(): Assertion `isAllocaPromotable(AI)
&& "Cannot promote non-promotable alloca!"' failed.

To reproduce:
opt -sroa reduced10_sroa.ll



Partial trace:

#11 0x0000000008077cfa llvm::PromoteMemToReg(llvm::ArrayRef<llvm::AllocaInst*>,
llvm::DominatorTree&, llvm::AssumptionCache*)
llvm-project/llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp:1373:3
#12 0x0000000007d16c94 llvm::SROA::promoteAllocas(llvm::Function&)
llvm-project/llvm/lib/Transforms/Scalar/SROA.cpp:5564:3
#13 0x0000000007d1700d llvm::SROA::runImpl(llvm::Function&,
llvm::DominatorTree&, llvm::AssumptionCache&)
llvm-project/llvm/lib/Transforms/Scalar/SROA.cpp:5610:16

-- 
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/20210830/dd6616b5/attachment.html>


More information about the llvm-bugs mailing list