arpilipe

Results comments of arpilipe

The big endian code in the bug description is not correct. It must be: uint32_t be32read(uint8_t buf[static 4]) { return ((uint32_t)buf[0]

(add double (sitofp x), fpcst) --> (sitofp (add int x, intcst)) combine in the same function is also buggy for the same reason. To trigger: #include float test(unsigned int arg)...

This optimization was on for quite a while but recently was disabled again because it exposes a problem in indvarsimplify. See for details: llvm/llvm-bugzilla-archive#31181

Right, here is the initial optimization patch: https://reviews.llvm.org/D23059 (went in as r278107) Later we discovered that this patch interacts with indvar simplify in a strange manner and cause regression on...

I didn't manage to reproduce it locally with ToT and the last example. Here is the output in my case: ld.lld -o t2 1.bc 2.bc entry symbol _start not found,...

CVP correctly marks the add as nuw basing on the loop latch check. After CVP: define i32 @​main() #​0 { entry: br label %for.cond for.cond: ; preds = %for.inc, %entry...