ekatz

Results comments of ekatz

The testcase is incorrect. It creates a function in module "m1", while referring it in module "m2", via a constant bitcast. The correct code should *declare* the same function as...

*** Bug llvm/llvm-bugzilla-archive#31106 has been marked as a duplicate of this bug. ***

*** Bug llvm/llvm-project#8131 has been marked as a duplicate of this bug. ***

Fix in https://reviews.llvm.org/D69069

[new_testcase](https://user-images.githubusercontent.com/24540350/143742506-70978710-c9b5-4b02-ae62-74b493cb1d78.gz) I added an updated version of the testcase. Still reproducible on current trunk. To reproduce run: opt boot2.bc -inline -loop-extract

There is a patch I uploaded for review in https://reviews.llvm.org/D78746. But it will break the ABI, which complicates the solution too much for me (or seems to be anyone else...

Inlining into the thunk, in -O2, is actually consistent with GCC. The only difference remains -O0.

Still reproducible on clang 9.0 with -O0, but -O1 (and above) will produce the required optimized code (on GCC even, this code is optimized even on -O0). Does this satisfy...

Fixed in LLVM v3.8 (run clang/opt with -O1 or above).

Fixed in llvm v3.1, and the consistency of GEP indices types is fixed in llvm v3.8.