Revert "[GlobalOpt] Perform store->dominated load forwarding for stored once globals"
authorArthur Eubanks <aeubanks@google.com>
Mon, 20 Jun 2022 17:26:47 +0000 (10:26 -0700)
committerArthur Eubanks <aeubanks@google.com>
Mon, 20 Jun 2022 17:26:47 +0000 (10:26 -0700)
commit13ff7d6f393da07c285c710beaa93b6ac3a276fb
tree4f9b2d0674f3d0e5b3ffae897ef2536c91723ac7
parent1cd2c72befae87d68842c3c2c3ffe86edd63767b
Revert "[GlobalOpt] Perform store->dominated load forwarding for stored once globals"

This reverts commit 6f348b146b69a50d5fb1b9fbfd14bc1d204e45c4.

Am seeing internal test failures plus a linux kernel breakage reported due to this.
llvm/lib/Transforms/IPO/GlobalOpt.cpp
llvm/test/Transforms/GlobalOpt/malloc-promote-1-no-null-opt.ll
llvm/test/Transforms/GlobalOpt/malloc-promote-2-no-null-opt.ll
llvm/test/Transforms/GlobalOpt/malloc-promote-3.ll
llvm/test/Transforms/GlobalOpt/shrink-global-to-bool-check-debug.ll
llvm/test/Transforms/GlobalOpt/shrink-global-to-bool.ll
llvm/test/Transforms/GlobalOpt/stored-once-forward-value.ll
llvm/test/Transforms/PhaseOrdering/recompute-globalsaa.ll