[llvm] e15cf49 - [Test] Fix tests showing generation of already existent PHIs by GVN
Dmitry Makogon via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 2 07:58:49 PDT 2021
Author: Dmitry Makogon
Date: 2021-11-02T21:57:37+07:00
New Revision: e15cf498f6f600108e030f99f377418987d77754
URL: https://github.com/llvm/llvm-project/commit/e15cf498f6f600108e030f99f377418987d77754
DIFF: https://github.com/llvm/llvm-project/commit/e15cf498f6f600108e030f99f377418987d77754.diff
LOG: [Test] Fix tests showing generation of already existent PHIs by GVN
Add target triple to the test module, so IndVars has a TTI to perform
congruent IVs elimination.
Added:
Modified:
llvm/test/Transforms/GVN/gvn-eliminate-duplicating-phis.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/GVN/gvn-eliminate-duplicating-phis.ll b/llvm/test/Transforms/GVN/gvn-eliminate-duplicating-phis.ll
index bda22d34142be..0c03574733f17 100644
--- a/llvm/test/Transforms/GVN/gvn-eliminate-duplicating-phis.ll
+++ b/llvm/test/Transforms/GVN/gvn-eliminate-duplicating-phis.ll
@@ -1,6 +1,8 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -gvn -indvars -S %s | FileCheck %s
+target triple = "aarch64--linux-gnu"
+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
declare void @escape(i32* %ptr)
More information about the llvm-commits
mailing list