[llvm-bugs] [Bug 40013] New: Regression since SVN r341136, "[ARM] Enable GEP offset splitting for 32-bit ARM."

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Dec 13 13:00:38 PST 2018


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

            Bug ID: 40013
           Summary: Regression since SVN r341136, "[ARM] Enable GEP offset
                    splitting for 32-bit ARM."
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: ARM
          Assignee: unassignedbugs at nondot.org
          Reporter: martin at martin.st
                CC: efriedma at codeaurora.org, llvm-bugs at lists.llvm.org,
                    peter.smith at linaro.org, Ties.Stuij at arm.com

Created attachment 21221
  --> https://bugs.llvm.org/attachment.cgi?id=21221&action=edit
Compressed reproduction sample

Since SVN r341136, "[ARM] Enable GEP offset splitting for 32-bit ARM.",
compiling for ARM can trigger the error "Instruction does not dominate all
uses!".

To reproduce, compile the attached sample code with "clang++ -target
armv7-w64-mingw32 -c -O3 repro.cpp", which results in the following error:

Instruction does not dominate all uses!
  %splitgep = getelementptr i8, i8* %47, i32 4
  %46 = bitcast i8* %splitgep to i48*
fatal error: error in backend: Broken function found, compilation aborted!
clang-8: error: clang frontend command failed with exit code 70 (use -v to see
invocation)


(The same issue can also be reproduced with an armv7-linux-gnueabihf target,
while the source code will produce a few C++ level warnings in that case.)

-- 
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/20181213/0dab368d/attachment.html>


More information about the llvm-bugs mailing list