[llvm-commits] [llvm] r45823 - /llvm/trunk/utils/TableGen/InstrInfoEmitter.cpp
Chris Lattner
sabre at nondot.org
Wed Jan 9 21:40:54 PST 2008
Author: lattner
Date: Wed Jan 9 23:40:54 2008
New Revision: 45823
URL: http://llvm.org/viewvc/llvm-project?rev=45823&view=rev
Log:
if an instr lacks a pattern, assume it has side effects (unless never has s-e is true).
Modified:
llvm/trunk/utils/TableGen/InstrInfoEmitter.cpp
Modified: llvm/trunk/utils/TableGen/InstrInfoEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/InstrInfoEmitter.cpp?rev=45823&r1=45822&r2=45823&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/InstrInfoEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/InstrInfoEmitter.cpp Wed Jan 9 23:40:54 2008
@@ -154,7 +154,10 @@
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.
More information about the llvm-commits
mailing list