[all-commits] [llvm/llvm-project] 944f39: [InstCombine] Strip inbounds from (select C, (gep ...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Jul 15 04:19:41 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 944f39f38d2b1d54ac9a5668e3ef33d946a81344
      https://github.com/llvm/llvm-project/commit/944f39f38d2b1d54ac9a5668e3ef33d946a81344
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-07-15 (Thu, 15 Jul 2021)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
    M llvm/test/Transforms/InstCombine/select-gep.ll

  Log Message:
  -----------
  [InstCombine] Strip inbounds from (select C, (gep Ptr, Idx), Ptr) -> (gep Ptr, (select C, Idx, 0)) fold

As discussed on rGd561b6fbdbe6, we can't guarantee that the new gep is inbounds




More information about the All-commits mailing list