mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-23 15:29:51 +00:00
if an instr lacks a pattern, assume it has side effects (unless never has s-e is true).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45823 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bc0b9f70ae
commit
214884ba03
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user