Ticket #5782 (closed bug: fixed)

Opened 16 months ago

Last modified 16 months ago

llvm --enable-tbaa forces LLVM to be 2.9 or above

Reported by: pmonday Owned by: dterei
Priority: normal Milestone:
Component: Compiler (LLVM) Version: 7.5
Keywords: Cc:
Operating System: Linux Architecture: x86_64 (amd64)
Type of failure: GHC rejects valid program Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

I compiled the latest master against LLVM 2.8. The compile worked initially, but when using the ghc-stage2 compiler against new code with the fllvm option, all programs fail to compile with: opt: Unknown command line argument '--enable-tbaa=true'. Try: 'opt -help'

This is the result of the following flags being added to: ghc/compiler/main/DriverPipeline.hs

tbaa | dopt Opt_LlvmTBAA dflags = "--enable-tbaa=true"

| otherwise = "--enable-tbaa=false"

--enable-tbaa is available on opt version 2.9 and above only.

It would be helpful if the ./configure script verified that the opt (and possibly llc) versions were 2.9 or above.

Change History

Changed 16 months ago by dterei

Yes this is a known issue. I'm experimenting with some features in the backend that require 2.9 but will get around to making this a runtime detected feature sometime soon.

Changed 16 months ago by dterei

  • status changed from new to closed
  • resolution set to fixed

Fixed in 878371810de61632d58962608fb3db588d9c2fbd.

Note: See TracTickets for help on using tickets.