[all-commits] [llvm/llvm-project] 94d626: [GlobalStatus] Look through non-constexpr casts

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Jan 11 07:02:51 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 94d62633914b8dcda2eac5c8e947172e0ddac93d
      https://github.com/llvm/llvm-project/commit/94d62633914b8dcda2eac5c8e947172e0ddac93d
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-01-11 (Tue, 11 Jan 2022)

  Changed paths:
    M llvm/lib/Transforms/Utils/GlobalStatus.cpp
    A llvm/test/Transforms/GlobalOpt/stored-once-through-gep.ll

  Log Message:
  -----------
  [GlobalStatus] Look through non-constexpr casts

analyzeGlobal() looks through non-constexpr cast instructions when
looking for users. However, this particular place only strips the
casts again if they are constexprs. We should be looking through all
casts here.




More information about the All-commits mailing list