Displaying 2 results from an estimated 2 matches for "simple_ir".
Did you mean:
simple_ir3
2014 Sep 09
3
[LLVMdev] failed folding with constant array with opt -O3
I have the following simplified llvm ir, which basically returns value
based on the first value of a constant array.
----
; ModuleID = 'simple_ir3.txt'
@f.b = constant [1 x i32] [i32 1], align 4 ; constant array with
value 1 at the first element
define void @f(i32* nocapture %l0) {
entry:
%fc_ = alloca [1 x i32]
%f.b.v = load [1 x i32]* @f.b
store [1 x i32] %f.b.v, [1 x i32]* %fc_
%0 = getelementptr [1 x i32]* %fc_, i6...
2014 Sep 10
3
[LLVMdev] failed folding with constant array with opt -O3
...h can then
> be further optimized.
>
> Cheers,
> Roel
>
> On 09/09/14 18:30, Peng Cheng wrote:
>> I have the following simplified llvm ir, which basically returns value
>> based on the first value of a constant array.
>>
>> ----
>> ; ModuleID = 'simple_ir3.txt'
>>
>> @f.b = constant [1 x i32] [i32 1], align 4 ; constant array
>> with value 1 at the first element
>>
>> define void @f(i32* nocapture %l0) {
>> entry:
>> %fc_ = alloca [1 x i32]
>> %f.b.v = load [1 x i32]* @f.b
>>...