[llvm] Fix incorrect codegen with respect to GEPs #85333 (PR #88440)

via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 26 15:10:11 PDT 2024


hiraditya wrote:

> This is probably not the right way to fix this: GEPs are not the only instruction type that has non-operand state. Either there is some other place already taking this into account in GVNSink that needs to be adapted for GEPs, or GVNSink should be calling hasSameSpecialState() (or one of that family of functions).

i see. this makes it simpler. Thanks!

https://github.com/llvm/llvm-project/pull/88440


More information about the llvm-commits mailing list