[llvm] [SimplifyCFG] Don't separate a load/store from its gep during sinking (PR #102318)

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 19 17:05:44 PDT 2024


================
@@ -1975,13 +1984,13 @@ define void @store_with_non_sunk_gep(i1 %cond, ptr %p.a, ptr %p.b, i64 %a, i64 %
 ; CHECK:       if:
 ; CHECK-NEXT:    call void @dummy()
 ; CHECK-NEXT:    [[GEP_A:%.*]] = getelementptr i8, ptr [[P_A:%.*]], i64 [[A:%.*]]
----------------
efriedma-quic wrote:

For reference, where is the code that decides we can't sink this GEP?

https://github.com/llvm/llvm-project/pull/102318


More information about the llvm-commits mailing list