mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
add pattern to load constant 0 into a predicate reg
llvm-svn: 24164
This commit is contained in:
parent
e18362e079
commit
4adb8143ce
@ -361,6 +361,8 @@ def SELECTINT : Pat<(select PR:$which, GR:$src1, GR:$src2),
|
||||
def : Pat<(i64 immSExt14:$imm), (ADDS r0, immSExt14:$imm)>;
|
||||
def : Pat<(i64 imm64:$imm), (MOVL imm64:$imm)>;
|
||||
def : Pat<(i1 -1), (CMPEQ r0, r0)>; // TODO: this should just be a ref to p0
|
||||
def : Pat<(i1 0), (CMPNE r0, r0)>; // TODO: any instruction actually *using*
|
||||
// this predicate should be killed!
|
||||
|
||||
// TODO: support postincrement (reg, imm9) loads+stores - this needs more
|
||||
// tablegen support
|
||||
|
Loading…
Reference in New Issue
Block a user