HomeFreeBSD

Pull in r224890 from upstream llvm trunk (by David Majnemer):

Description

Pull in r224890 from upstream llvm trunk (by David Majnemer):

PowerPC: CTR shouldn't fire if a TLS call is in the loop

Determining the address of a TLS variable results in a function call in
certain TLS models.  This means that a simple ICmpInst might actually
result in invalidating the CTR register.

In such cases, do not attempt to rely on the CTR register for loop
optimization purposes.

This fixes PR22034.

Differential Revision: http://reviews.llvm.org/D6786

This fixes a "Invalid PPC CTR loop" error when compiling parts of libc
for PowerPC-32.

Details

Provenance
dimAuthored on
Parents
rS276323: Implement "special mask mode" in vatpic.
Branches
Unknown
Tags
Unknown

Event Timeline