Opened 5 years ago

Closed 4 years ago

#9917 closed bug (fixed)

ddump-llvm runs opt/llc even when -fllvm isnt set

Reported by: carter Owned by:
Priority: low Milestone: 8.0.1
Component: Documentation Version: 7.8.3
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Documentation bug Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

to reproduce

put

main= putStrLn "hello world"

in hello.hs and then invoke ghc hello.hs -O2 -v3 -fforce-recomp -ddump-llvm

then at some point you'll see something like

*** LLVM Optimiser:
opt-3.4 /var/folders/py/wgp_hj9d2rl3cx48yym_ynj00000gn/T/ghc88460_0/ghc88460_2.ll -o /var/folders/py/wgp_hj9d2rl3cx48yym_ynj00000gn/T/ghc88460_0/ghc88460_4.bc -O2 '--enable-tbaa=true'
*** LLVM Compiler:
llc-3.4 -O2 '-relocation-model=pic' /var/folders/py/wgp_hj9d2rl3cx48yym_ynj00000gn/T/ghc88460_0/ghc88460_4.bc -o /var/folders/py/wgp_hj9d2rl3cx48yym_ynj00000gn/T/ghc88460_0/ghc88460_5.lm_s '--enable-tbaa=true' '-mattr=+sse2'
*** LLVM Mangler:

in the output

Change History (6)

comment:1 Changed 5 years ago by thomie

Component: CompilerDocumentation
Priority: normallow

-ddump-llvm currently implies -fllvm, as do -keep-llvm-file and -keep-llvm-files.

This could be mentioned in the user's guide.

comment:2 Changed 4 years ago by thomie

Type of failure: None/UnknownDocumentation bug

comment:3 Changed 4 years ago by Thomas Miedema <thomasmiedema@…>

In ed119096/ghc:

Docs: -keep-llvm-file(s)/-ddump-llvm imply -fllvm

This fixes #9917.

comment:4 Changed 4 years ago by thomie

Milestone: 8.0.1
Status: newmerge

comment:6 Changed 4 years ago by bgamari

Resolution: fixed
Status: mergeclosed
Note: See TracTickets for help on using tickets.