projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc0b9f7
)
if an instr lacks a pattern, assume it has side effects (unless never has s-e is...
author
Chris Lattner
<sabre@nondot.org>
Thu, 10 Jan 2008 05:40:54 +0000
(
05:40
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 10 Jan 2008 05:40:54 +0000
(
05:40
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45823
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/TableGen/InstrInfoEmitter.cpp
patch
|
blob
|
history
diff --git
a/utils/TableGen/InstrInfoEmitter.cpp
b/utils/TableGen/InstrInfoEmitter.cpp
index 7f25f3c462ca1178e3f7619e1eed8d7d5c993a08..bcb8be662563abeef74d9dffccb3cb556f09f001 100644
(file)
--- a/
utils/TableGen/InstrInfoEmitter.cpp
+++ b/
utils/TableGen/InstrInfoEmitter.cpp
@@
-154,7
+154,10
@@
public:
void Analyze(Record *InstRecord) {
const TreePattern *Pattern = CDP.getInstruction(InstRecord).getPattern();
- if (Pattern == 0) return; // No pattern.
+ if (Pattern == 0) {
+ HasSideEffects = 1;
+ return; // No pattern.
+ }
// FIXME: Assume only the first tree is the pattern. The others are clobber
// nodes.