diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-06-19 21:36:55 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-06-19 21:36:55 +0000 |
commit | ba54bca472a15d0657e1b88776f7069042b60b4e (patch) | |
tree | 948ecae4dce7537acc3510cac2c64ab8ff313380 /lib/Target/R600/SIInstrInfo.td | |
parent | ce1164be37e60f44057303fbf7ac02167012eba5 (diff) | |
download | external_llvm-ba54bca472a15d0657e1b88776f7069042b60b4e.zip external_llvm-ba54bca472a15d0657e1b88776f7069042b60b4e.tar.gz external_llvm-ba54bca472a15d0657e1b88776f7069042b60b4e.tar.bz2 |
Access the TargetLoweringInfo from the TargetMachine object instead of caching it. The TLI may change between functions. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184360 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/R600/SIInstrInfo.td')
-rw-r--r-- | lib/Target/R600/SIInstrInfo.td | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/R600/SIInstrInfo.td b/lib/Target/R600/SIInstrInfo.td index 42fa95f..36812ca 100644 --- a/lib/Target/R600/SIInstrInfo.td +++ b/lib/Target/R600/SIInstrInfo.td @@ -44,7 +44,8 @@ def IMM12bit : PatLeaf <(imm), >; class InlineImm <ValueType vt> : PatLeaf <(vt imm), [{ - return (*(const SITargetLowering *)TLI).analyzeImmediate(N) == 0; + return + (*(const SITargetLowering *)getTargetLowering()).analyzeImmediate(N) == 0; }]>; //===----------------------------------------------------------------------===// |