Revert "[AggressiveInstCombine] folding load for constant global patterened arrays...
authorJordan Rupprecht <rupprecht@google.com>
Tue, 9 May 2023 17:38:46 +0000 (10:38 -0700)
committerJordan Rupprecht <rupprecht@google.com>
Tue, 9 May 2023 17:38:46 +0000 (10:38 -0700)
commite08c397a88077c50dc25e71b39b9d5efbfc85a9a
tree62f071a9c56127a06cdb3a3b7fde65c3ff820c7f
parentc1d94ea08cd1ea5ac94310726323e4c5480a3480
Revert "[AggressiveInstCombine] folding load for constant global patterened arrays and structs by GEP-indices Differential Revision: https://reviews.llvm.org/D146622 Fixes https://github.com/llvm/llvm-project/issues/61615"

This reverts commit 0574a4be879e07b48ba9be8d63eebba49a04dfe8. It causes a compiler crash due to a div by zero.
llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp
llvm/test/Transforms/AggressiveInstCombine/patterned-load.ll