File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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
12691270def : Pat<(i64 (X86Wrapper texternalsym:$dst)),
12701271 (MOV64ri32 texternalsym:$dst)>, Requires<[KernelCode]>;
You can’t perform that action at this time.
0 commit comments