Displaying 4 results from an estimated 4 matches for "_tmp5".
Did you mean:
tmp5
2016 Apr 18
2
Different index types in GEPs -> non-aliasing?
...e array.
; NB: using i64 as type of the index argument!
%_tmp2 = getelementptr [3 x i16], [3 x i16]* %a, i16 0, i64 1
store i16 98, i16* %_tmp2
; Read at index 1 in the array
; NB: using i16 as type of the index argument!
%_tmp4 = getelementptr [3 x i16], [3 x i16]* %a, i16 0, i16 1
%_tmp5 = load i16, i16* %_tmp4
; Check read value. If not 98, jump to bb1
%_tmp6 = icmp ne i16 %_tmp5, 98
br i1 %_tmp6, label %bb1, label %bb2
bb1:
; Error
ret i16 1;
bb2:
; Ok
ret i16 0;
}
opt -S -gvn foo.ll
and I got the result
; ModuleID = 'foo.ll'
define i16 @f() {
%a =...
2016 Feb 08
2
LoopIdiomRegognize vs Preserved
Hi,
I'm having problems with the LoopIdiomRegognizer crashing on me with
An asserting value handle still pointed to this value!
UNREACHABLE executed at ../lib/IR/Value.cpp:695!
If I remove
AU.addPreserved<LoopInfoWrapperPass>();
or
AU.addPreserved<AAResultsWrapperPass>();
everything goes well.
The C-code triggering this is
void foo(int a[10][10])
{
int i, j,
2016 Feb 09
2
LoopIdiomRegognize vs Preserved
...ay() {
%j.3 = alloca i8
%k.4 = alloca i8
br label %bb1
bb4: ; preds = %bb3
store i8 0, i8* %k.4
br label %bb5
bb6: ; preds = %bb5
%_tmp31 = sext i8 %_tmp3 to i64
%_tmp4 = mul i64 %_tmp31, 10
%_tmp5 = getelementptr i8, i8* undef, i64 %_tmp4
%_tmp6 = load i8, i8* %k.4
%_tmp7 = getelementptr i8, i8* %_tmp5, i8 %_tmp6
store i8 42, i8* %_tmp7
%_tmp8 = load i8, i8* %k.4
%_tmp9 = add i8 %_tmp8, 1
store i8 %_tmp9, i8* %k.4
br label %bb5
bb5:...
2017 Jan 13
4
Wrong code bug after GVN/PRE?
...4
%globcse1.10 = alloca %int4
%cach1.11 = alloca %int4
%liv1.12 = alloca %ptr20
%liv2.13 = alloca %ptr20
%liv3.14 = alloca %ptr20
%lb.15 = alloca %arr18
%ub.16 = alloca %arr18
store %ptr20 %lb.15, %ptr26 %liv2.13
store %ptr20 %ub.16, %ptr26 %liv1.12
store %int4 0, %ptr7 %step1.7
br label %bb1
bb1:
%_tmp5 = load %int4, %ptr7 %step1.7
%_tmp6 = add %int4 %_tmp5, 7
store %int4 %_tmp6, %ptr7 %cach1.11
%_tmp7 = load %int4, %ptr7 %cach1.11
%_tmp8 = load %ptr20, %ptr26 %liv2.13
%_tmp9 = load %int4, %ptr7 %step1.7
%_tmp10 = sext %int4 %_tmp9 to i64
%_tmp11 = getelementptr %arr18, %ptr20 %_tmp8, i16 0, i64 %...