How does this idea sound? I'd also add the inline asm stuff, but I know that is not useful atm.
TODO: Will post test before any landing.
Paths
| Differential D70479
[MIRVRegNamerUtils] Add additional hashing on MachineInstr flags. ClosedPublic Authored by plotfi on Nov 20 2019, 12:39 AM.
Details Summary How does this idea sound? I'd also add the inline asm stuff, but I know that is not useful atm. TODO: Will post test before any landing.
Diff Detail
Event Timeline
This revision is now accepted and ready to land.Dec 10 2019, 12:23 PM Closed by commit rGf364686f34d8: [llvm][MIRVRegNamerUtil] Adding hashing against MachineInstr flags. (authored by plotfi). · Explain WhyDec 10 2019, 5:23 PM This revision was automatically updated to reflect the committed changes. plotfi marked an inline comment as done.
Revision Contents
Diff 233241 llvm/lib/CodeGen/MIRVRegNamerUtils.cpp
llvm/test/CodeGen/MIR/X86/mircanon-flags.mir
|
I'd probably just do
That should be equivalent to what you're doing above.
In fact, I'd just simplify it to
with 0 (no flags) being also valid enough to contribute to the hash.