[LLVMbugs] [Bug 12691] New: Instruction does not dominate all uses!

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Apr 28 18:21:28 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=12691

             Bug #: 12691
           Summary: Instruction does not dominate all uses!
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: regehr at cs.utah.edu
                CC: chenyang at cs.utah.edu, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


[regehr at dyson r41]$ clang -c -O small.c
Instruction does not dominate all uses!
  %3 = load i32* @b, align 4, !tbaa !0
  %2 = sub i32 %1, %3
Broken module found, compilation aborted!
0  clang           0x0000000001b6b1df
1  clang           0x0000000001b6b6f4
2  libpthread.so.0 0x00007ffff7bcf8f0
3  libc.so.6       0x00007ffff6ebea75 gsignal + 53
4  libc.so.6       0x00007ffff6ec25c0 abort + 384
5  clang           0x0000000001b20543
6  clang           0x0000000001b1f3ad
7  clang           0x0000000001b0b91b
llvm::FPPassManager::runOnFunction(llvm::Function&) + 443
8  clang           0x0000000001b0bb7b
llvm::FPPassManager::runOnModule(llvm::Module&) + 155
9  clang           0x0000000001b0bdf3
llvm::MPPassManager::runOnModule(llvm::Module&) + 419
10 clang           0x0000000001b0c368 llvm::PassManagerImpl::run(llvm::Module&)
+ 408
11 clang           0x0000000001b0c4ca llvm::PassManager::run(llvm::Module&) +
10
12 clang           0x000000000076cf17
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 4999
13 clang           0x000000000076adca
14 clang           0x00000000008982d5 clang::ParseAST(clang::Sema&, bool, bool)
+ 389
15 clang           0x0000000000769e58 clang::CodeGenAction::ExecuteAction() +
184
16 clang           0x000000000063a7dd
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 973
17 clang           0x0000000000622dbb
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3307
18 clang           0x0000000000617b6b cc1_main(char const**, char const**, char
const*, void*) + 731
19 clang           0x000000000061f4ea main + 3466
20 libc.so.6       0x00007ffff6ea9c4d __libc_start_main + 253
21 clang           0x00000000006177c9
Stack dump:
0.    Program arguments:
/uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r155708-install/bin/clang
-cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
small.c -mrelocation-model static -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version
2.20.1 -momit-leaf-frame-pointer -coverage-file small.o -resource-dir
/uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r155708-install/bin/../lib/clang/3.2
-fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem
/usr/local/include -internal-isystem
/uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r155708-install/bin/../lib/clang/3.2/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O2
-fdebug-compilation-dir /home/regehr/z/reduce/r41 -ferror-limit 19
-fmessage-length 95 -mstackrealign -fgnu-runtime -fobjc-runtime-has-arc
-fobjc-runtime-has-weak -fobjc-fragile-abi -fdiagnostics-show-option
-fcolor-diagnostics -o small.o -x c small.c 
1.    <eof> parser at end of file
2.    Code generation
3.    Running pass 'Function Pass Manager' on module 'small.c'.
4.    Running pass 'Module Verifier' on function '@fn2'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang: note: diagnostic msg: Preprocessed source(s) and associated run
script(s) are located at:
clang: note: diagnostic msg: /tmp/small-y5dxa7.i
clang: note: diagnostic msg: /tmp/small-y5dxa7.sh
[regehr at dyson r41]$ cat small.c
int a, b, c, d, e;
void fn1 ();
void
fn2 ()
{
    int f, g = 0;
    for (;; g--)
    {
        fn1 ();
        if (e)
            break;
    }
    f = g + a;
    b ^= f;
    for (; d; d++)
        c = b && 1;
}
[regehr at dyson r41]$ clang -v
clang version 3.2 (trunk 155708)
Target: x86_64-unknown-linux-gnu
Thread model: posix

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list