aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/Cuda.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2021-08-23 21:06:06 +0100
committerSimon Pilgrim <llvm-dev@redking.me.uk>2021-08-23 21:09:26 +0100
commit10c982e0b3e6d46d1fe288d7dbe0a393c65a640f (patch)
tree7ffde3319102f8641ef839d808368c2d1253cc59 /clang/lib/Basic/Cuda.cpp
parent50f4ae58eb136bc9d802cb98f02b6ff237eb61e0 (diff)
downloadllvm-10c982e0b3e6d46d1fe288d7dbe0a393c65a640f.zip
llvm-10c982e0b3e6d46d1fe288d7dbe0a393c65a640f.tar.gz
llvm-10c982e0b3e6d46d1fe288d7dbe0a393c65a640f.tar.bz2
Revert rG1c9bec727ab5c53fa060560dc8d346a911142170 : [InstCombine] Fold (gep (oneuse(gep Ptr, Idx0)), Idx1) -> (gep Ptr, (add Idx0, Idx1)) (PR51069)
Reverted (manually due to merge conflicts) while regressions reported on PR51540 are investigated As noticed on D106352, after we've folded "(select C, (gep Ptr, Idx), Ptr) -> (gep Ptr, (select C, Idx, 0))" if the inner Ptr was also a (now one use) gep we could then merge the geps, using the sum of the indices instead. I've limited this to basic 2-op geps - a more general case further down InstCombinerImpl.visitGetElementPtrInst doesn't have the one-use limitation but only creates the add if it can be created via SimplifyAddInst. https://alive2.llvm.org/ce/z/f8pLfD (Thanks Roman!) Differential Revision: https://reviews.llvm.org/D106450
Diffstat (limited to 'clang/lib/Basic/Cuda.cpp')
0 files changed, 0 insertions, 0 deletions