[all-commits] [llvm/llvm-project] 93c678: [X86] Simplify vpternlog immediate selection.
topperc via All-commits
all-commits at lists.llvm.org
Fri Jul 31 17:17:00 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 93c678a79b0a8914954d77973593ea36706db5d5
https://github.com/llvm/llvm-project/commit/93c678a79b0a8914954d77973593ea36706db5d5
Author: Craig Topper <craig.topper at intel.com>
Date: 2020-07-31 (Fri, 31 Jul 2020)
Changed paths:
M llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
Log Message:
-----------
[X86] Simplify vpternlog immediate selection.
Rather than hardcoding immediate values for 12 different combinations
in a nested pair of switches, we can perform the matched logic
operation on 3 magic constants to calculate the immediate.
Special thanks to this tweet https://twitter.com/rygorous/status/1187034321992871936
for making me realize I could do this.
More information about the All-commits
mailing list