summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/IndVarSimplify/promote-iv-to-eliminate-casts.ll
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2015-03-04 18:43:29 +0000
committerMehdi Amini <mehdi.amini@apple.com>2015-03-04 18:43:29 +0000
commit46a43556db23edb514f190cc03b0ce7f68d40534 (patch)
tree8975390ebdcdf12760bb63b35a7eb883156e87fd /llvm/test/Transforms/IndVarSimplify/promote-iv-to-eliminate-casts.ll
parent2ae03e178392e0693872e42c947d784b3c02ea60 (diff)
downloadbcm5719-llvm-46a43556db23edb514f190cc03b0ce7f68d40534.tar.gz
bcm5719-llvm-46a43556db23edb514f190cc03b0ce7f68d40534.zip
Make DataLayout Non-Optional in the Module
Summary: DataLayout keeps the string used for its creation. As a side effect it is no longer needed in the Module. This is "almost" NFC, the string is no longer canonicalized, you can't rely on two "equals" DataLayout having the same string returned by getStringRepresentation(). Get rid of DataLayoutPass: the DataLayout is in the Module The DataLayout is "per-module", let's enforce this by not duplicating it more than necessary. One more step toward non-optionality of the DataLayout in the module. Make DataLayout Non-Optional in the Module Module->getDataLayout() will never returns nullptr anymore. Reviewers: echristo Subscribers: resistor, llvm-commits, jholewinski Differential Revision: http://reviews.llvm.org/D7992 From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 231270
Diffstat (limited to 'llvm/test/Transforms/IndVarSimplify/promote-iv-to-eliminate-casts.ll')
-rw-r--r--llvm/test/Transforms/IndVarSimplify/promote-iv-to-eliminate-casts.ll7
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/test/Transforms/IndVarSimplify/promote-iv-to-eliminate-casts.ll b/llvm/test/Transforms/IndVarSimplify/promote-iv-to-eliminate-casts.ll
index b6765011336..f2afaf42bc9 100644
--- a/llvm/test/Transforms/IndVarSimplify/promote-iv-to-eliminate-casts.ll
+++ b/llvm/test/Transforms/IndVarSimplify/promote-iv-to-eliminate-casts.ll
@@ -1,5 +1,8 @@
-; RUN: opt < %s -indvars -S > %t
-; RUN: not grep sext %t
+; RUN: opt < %s -indvars -S | not grep sext
+
+; Provide legal integer types.
+target datalayout = "n8:16:32:64"
+
define i64 @test(i64* nocapture %first, i32 %count) nounwind readonly {
entry:
OpenPOWER on IntegriCloud