diff options
-rw-r--r-- | test/Transforms/InstCombine/load.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/load.ll b/test/Transforms/InstCombine/load.ll index 056f3177a1..f3090a4f95 100644 --- a/test/Transforms/InstCombine/load.ll +++ b/test/Transforms/InstCombine/load.ll @@ -65,3 +65,10 @@ int %test8(int* %P) { %X = load int* %P ;; Trivial store->load forwarding ret int %X } + +int %test9(int* %P) { + %X = load int* %P ;; Trivial load cse + %Y = load int* %P + %Z = sub int %X, %Y + ret int %Z +} |