diff options
author | Marcin Koscielnicki <koriakin@0x04.net> | 2016-07-10 14:41:22 +0000 |
---|---|---|
committer | Marcin Koscielnicki <koriakin@0x04.net> | 2016-07-10 14:41:22 +0000 |
commit | cf7cc724a728e73e1b2c3258b0adb08326c802c1 (patch) | |
tree | 78bafc61d804bc8e576ec0843b86d5d789fb81c9 /llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp | |
parent | 303326541bab361acc5c1324b0a743a16aa3bae2 (diff) | |
download | llvm-cf7cc724a728e73e1b2c3258b0adb08326c802c1.zip llvm-cf7cc724a728e73e1b2c3258b0adb08326c802c1.tar.gz llvm-cf7cc724a728e73e1b2c3258b0adb08326c802c1.tar.bz2 |
[SystemZ] Utilize Test Data Class instructions.
This adds a new SystemZ-specific intrinsic, llvm.s390.tdc.f(32|64|128),
which maps straight to the test data class instructions. A new IR pass
is added to recognize instructions that can be converted to TDC and
perform the necessary replacements.
Differential Revision: http://reviews.llvm.org/D21949
llvm-svn: 275016
Diffstat (limited to 'llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp')
-rw-r--r-- | llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp b/llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp index 66a6e85..85a3f6f 100644 --- a/llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp +++ b/llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp @@ -122,6 +122,9 @@ public: } // end anonymous namespace void SystemZPassConfig::addIRPasses() { + if (getOptLevel() != CodeGenOpt::None) + addPass(createSystemZTDCPass()); + TargetPassConfig::addIRPasses(); } |