Skip to content

Commit 599c081

Browse files
committed
Rename pattern
1 parent ddc2311 commit 599c081

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/lib/Target/X86/X86InstrCompiler.td

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,12 +1259,13 @@ def : Pat<(i64 (X86Wrapper tjumptable :$dst)),
12591259

12601260
// If the globaladdr is an absolute_symbol, don't bother using the sign extending
12611261
// instruction since there's no benefit to using it with absolute symbols.
1262-
def inRange32GlobalAddr : PatLeaf<(tglobaladdr:$dst), [{
1262+
def globalAddrNoAbsSym : PatLeaf<(tglobaladdr:$dst), [{
12631263
auto *GA = cast<GlobalAddressSDNode>(N);
12641264
return !GA->getGlobal()->getAbsoluteSymbolRange();
12651265
}]>;
1266-
def : Pat<(i64 (X86Wrapper inRange32GlobalAddr:$dst)),
1267-
(MOV64ri32 tglobaladdr:$dst)>, Requires<[KernelCode]>;
1266+
def : Pat<(i64 (X86Wrapper globalAddrNoAbsSym:$dst)),
1267+
(MOV64ri32 tglobaladdr:$dst)>,
1268+
Requires<[KernelCode]>;
12681269

12691270
def : Pat<(i64 (X86Wrapper texternalsym:$dst)),
12701271
(MOV64ri32 texternalsym:$dst)>, Requires<[KernelCode]>;

0 commit comments

Comments
 (0)