[all-commits] [llvm/llvm-project] 79c7fa: [InstCombine] check alloc size in bitcast of geps ...

RotateRight via All-commits all-commits at lists.llvm.org
Sat Dec 21 07:32:37 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 79c7fa31f3aafba77862325cdc70a3ece7f71950
      https://github.com/llvm/llvm-project/commit/79c7fa31f3aafba77862325cdc70a3ece7f71950
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2019-12-21 (Sat, 21 Dec 2019)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
    M llvm/test/Transforms/InstCombine/gep-vector.ll

  Log Message:
  -----------
  [InstCombine] check alloc size in bitcast of geps fold (PR44321)

We missed a constraint in D44833
when folding a bitcast into a GEP with vector/array types.
If the alloc sizes specified by the datalayout don't match,
this could miscompile as shown in:
https://bugs.llvm.org/show_bug.cgi?id=44321

Differential Revision: https://reviews.llvm.org/D71771




More information about the All-commits mailing list