This patch basically enables fast-isel for AIX 64-bit subtarget (previously enabled only for ELF 64). The initial motivation is to introduce branch folding to AIX generated code for correct debug behavior. I also saw some compiling time improvement in a few LLVM test-suite benchmarks. (toast, dbms, cjpeg, burg, etc.) Reviewed By: jsji Differential Revision: https://reviews.llvm.org/D98844
14 lines
465 B
LLVM
14 lines
465 B
LLVM
; RUN: llc -verify-machineinstrs -mtriple powerpc64-unknown-linux-gnu -fast-isel -O0 < %s | FileCheck %s
|
|
; RUN: llc -verify-machineinstrs -mtriple powerpc64-ibm-aix-xcoff -fast-isel -O0 < %s | FileCheck %s
|
|
|
|
; Verify that pointer offsets larger than 32 bits work correctly.
|
|
|
|
define void @test(i32* %array) {
|
|
; CHECK-LABEL: test:
|
|
; CHECK-NOT: li {{[0-9]+}}, -8
|
|
%element = getelementptr i32, i32* %array, i64 2147483646
|
|
store i32 1234, i32* %element
|
|
ret void
|
|
}
|
|
|