Revert "Reapply [InstCombine] Switch foldOpIntoPhi() to use InstSimplify"
authorFlorian Hahn <flo@fhahn.com>
Mon, 17 Oct 2022 11:48:50 +0000 (12:48 +0100)
committerFlorian Hahn <flo@fhahn.com>
Mon, 17 Oct 2022 11:56:28 +0000 (12:56 +0100)
commit699396131f745ec8b42ae33cb0e4553a783b6674
tree8bd88c1e6971453693ab230c8993c156cd567ba5
parent240b85b1a8540f1ac000dda9042ac2fbccd9bc69
Revert "Reapply [InstCombine] Switch foldOpIntoPhi() to use InstSimplify"

This reverts commit 333246b48ea4a70842e78c977cc92d365720465f.

It looks like this patch causes a mis-compile:
https://github.com/llvm/llvm-project/issues/58401

Fixes #58401.
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
llvm/test/Transforms/InstCombine/intptr1.ll
llvm/test/Transforms/InstCombine/intptr4.ll
llvm/test/Transforms/InstCombine/intptr5.ll
llvm/test/Transforms/InstCombine/intptr7.ll
llvm/test/Transforms/InstCombine/phi-select-constant.ll
llvm/test/Transforms/InstCombine/phi.ll
llvm/test/Transforms/InstCombine/recurrence.ll