diff options
author | David Greene <greened@obbligato.org> | 2010-02-17 20:21:42 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2010-02-17 20:21:42 +0000 |
commit | 1157f791c967668f0838bb6edb66103c760f1a5b (patch) | |
tree | 79301328721f49424b37f4bbe4c9dc238ec9366b /include | |
parent | de12e4351c6100d87000603b0baa4c47c2fff3ef (diff) | |
download | llvm-1157f791c967668f0838bb6edb66103c760f1a5b.tar.gz llvm-1157f791c967668f0838bb6edb66103c760f1a5b.tar.bz2 llvm-1157f791c967668f0838bb6edb66103c760f1a5b.tar.xz |
Make the non-temporal bit "significant" in MemSDNodes so they aren't
CSE'd or otherwise combined with temporal MemSDNodes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96505 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/SelectionDAGNodes.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h index df1f91b622..9a426a0477 100644 --- a/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/include/llvm/CodeGen/SelectionDAGNodes.h @@ -1595,8 +1595,10 @@ public: return SubclassData; } + // We access subclass data here so that we can check consistency + // with MachineMemOperand information. bool isVolatile() const { return (SubclassData >> 5) & 1; } - bool isNonTemporal() const { return MMO->isNonTemporal(); } + bool isNonTemporal() const { return (SubclassData >> 6) & 1; } /// Returns the SrcValue and offset that describes the location of the access const Value *getSrcValue() const { return MMO->getValue(); } |