[PATCH] D143437: [llvm] Use pointer index type for more GEP offsets (pre-codegen)

Alexander Richardson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 22 13:25:13 PST 2023


arichardson added a comment.

In D143437#4145600 <https://reviews.llvm.org/D143437#4145600>, @krzysz00 wrote:

> @arsenm, I can try to put together tests for some of the remaining stuff (like the ICmp merge). However, unless I'm forgetting something, the remaaining untested bits are the ones that call accumulateConstantOffset(), which, per https://github.com/llvm/llvm-project/blob/main/llvm/lib/IR/Operator.cpp#L94-L96 , will crash if you mix up pointer bitwidth and index bitwidth. I'm not sure that fixing up those crashes (when most of the other code in LLVM has been fixed for this) justifies a test?

You could always pre-commit a `not --crash` test that is fixed by this commit?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D143437/new/

https://reviews.llvm.org/D143437



More information about the llvm-commits mailing list