[all-commits] [llvm/llvm-project] 759b8c: [InstCombine] Handle different pointer types when ...

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Dec 23 12:59:55 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 759b8c11c398c20f12503356f8aef604e0bf82be
      https://github.com/llvm/llvm-project/commit/759b8c11c398c20f12503356f8aef604e0bf82be
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2020-12-23 (Wed, 23 Dec 2020)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
    M llvm/test/Transforms/InstCombine/getelementptr.ll

  Log Message:
  -----------
  [InstCombine] Handle different pointer types when folding gep of null

The source pointer type is not necessarily the same as the result
pointer type, so we can't simply return the original null pointer,
it might be a different one.




More information about the All-commits mailing list