[all-commits] [llvm/llvm-project] 73cd8e: [InstCombine] Skip PromoteCastOfAllocation() trans...

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Jan 27 01:26:04 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 73cd8e29ad1d95692e480b85ccbefe5212468e9c
      https://github.com/llvm/llvm-project/commit/73cd8e29ad1d95692e480b85ccbefe5212468e9c
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-01-27 (Thu, 27 Jan 2022)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp

  Log Message:
  -----------
  [InstCombine] Skip PromoteCastOfAllocation() transform under opaque pointers

I think this can't be hit anyway (because a ptr-to-ptr bitcast would
get folded earlier), but in the interest of being explicit skip
this transform for opaque pointers entirely.




More information about the All-commits mailing list